Windows Groups ClickOnce应用程序在文件组下载期间崩溃

时间:2018-09-25 19:21:05

标签: c# winforms clickonce

我有一个WindowsForms应用程序,该应用程序是通过具有完全信任的ClickOnce部署的。当我们打开登录表单时,它崩溃了。登录表单将在后台加载其他非核心应用程序文件。根据分析,似乎在所有文件组下载完成之前崩溃。我们得到Windows操作系统对话框,提示“应用已停止工作”。看事件查看器,我看到下面的细节。有没有人看到此错误以及如何解决?我做错什么了?

Application: MyApp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
   at System.Deployment.Internal.Isolation.Manifest.IHashElementEntry.get_AllData()
   at System.Deployment.Internal.Isolation.Manifest.IHashElementEntry.get_AllData()
   at System.Deployment.Application.Manifest.DependentAssembly..ctor(System.Deployment.Internal.Isolation.Manifest.AssemblyReferenceEntry)
   at System.Deployment.Application.Manifest.AssemblyManifest.get_DependentAssemblies()
   at System.Deployment.Application.Manifest.AssemblyManifest.GetPrivateAssembliesInGroup(System.String, Boolean)
   at System.Deployment.Application.DownloadManager.AddDependencies(System.Deployment.Application.FileDownloader, System.Deployment.Application.Manifest.AssemblyManifest, System.Deployment.Application.Manifest.AssemblyManifest, System.Uri, System.String, System.String)
   at System.Deployment.Application.DownloadManager.DownloadDependencies(System.Deployment.Application.SubscriptionState, System.Deployment.Application.Manifest.AssemblyManifest, System.Deployment.Application.Manifest.AssemblyManifest, System.Uri, System.String, System.String, System.Deployment.Application.IDownloadNotification, System.Deployment.Application.DownloadOptions)
   at System.Deployment.Application.DeploymentManager.SynchronizeGroupCore(Boolean, System.Deployment.Application.SyncGroupHelper)
   at System.Deployment.Application.DeploymentManager.SynchronizeGroupAsyncWorker(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

0 个答案:

没有答案