Сбой приложения Windows Forms ClickOnce во время загрузки FileGroup - PullRequest
0 голосов
/ 25 сентября 2018

У меня есть приложение 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()
...