question

mranto-2210 avatar image
0 Votes"
mranto-2210 asked ·

clickonce, VS 2017 and WPF application. crash issue

We have developed a WPF application on VS 2017 (.Net Framework 4.5), and deployed it into an IIS server using ClickOnce. Users access to application URL, and the executable package is deployed to their computer. Everything works, but sometimes users had unexpected randomic crashes (maybe not depending on application bugs: eg network disconnections, or DB time out...), and then they are not able to re-run application. After a crash, users try to connect to application URL, and they get this error message "Cannot download the application. The application is missing required files. Contact application vendor for assistance". Error log file reports this message: "Can not uninstall application.... application is not installed" It seems that after crash, local configuration files were corrupted, and the only workaround I found to bypass this issue is to publish again (and then increment version number). Can anybody help me to fix this issue? here you find the error log file INFORMAZIONI VERSIONE PIATTAFORMA Windows : 10.0.18363.0 (Win32NT) Common Language Runtime : 4.0.30319.42000 System.Deployment.dll : 4.8.4270.0 built by: NET48REL1LAST_C clr.dll : 4.8.4300.0 built by: NET48REL1LAST_C dfdll.dll : 4.8.4270.0 built by: NET48REL1LAST_C dfshim.dll : 10.0.18362.1 (WinBuild.160101.0800) ORIGINI URL distribuzione : http://10.86.1.175/gesi/ Server : Microsoft-IIS/7.5 X-Tecnologia : ASP.NET IDENTITÀ Identità distribuzione : GesiView.application, Version=1.0.0.152, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=x86 RIEPILOGO APPLICAZIONE Applicazione solo in linea. RIEPILOGO ERRORI Quello che segue è un riepilogo degli errori. Informazioni dettagliate su tali errori sono disponibili più avanti nel registro. Impossibile disinstallare l'applicazione. Per ulteriori informazioni, vedere i dettagli. Sono stati rilevati i messaggi di errore seguenti: + L'applicazione non è installata. L'attivazione di http://10.86.1.175/gesi/ ha causato un'eccezione. Sono stati rilevati i messaggi di errore seguenti: + L'applicazione non è installata. RIEPILOGO ERRORI TRANSAZIONE ARCHIVIO COMPONENTI Nessun errore di transazione rilevato. AVVISI Nessun avviso durante l'operazione. STATO OPERAZIONE [26/02/2021 14:39:17] : Attivazione di http://10.86.1.175/gesi/ avviata. [26/02/2021 14:39:17] : Elaborazione del manifesto di distribuzione completata. DETTAGLI ERRORI Durante l'operazione sono stati rilevati gli errori seguenti. [26/02/2021 14:39:17] System.Deployment.Application.DeploymentException (SubscriptionState) - L'applicazione non è installata. - Origine: System.Deployment - Analisi dello stack: in System.Deployment.Application.SubscriptionStore.CheckShellVisible(SubscriptionState subState) in System.Deployment.Application.SubscriptionStore.UninstallSubscription(SubscriptionState subState) in System.Deployment.Application.ApplicationActivator.UninstallApplicationAndRedirectActivation(Boolean& isShortCut, Uri& deploymentProviderUri, String textualSubId, Uri activationUri) --- Fine traccia dello stack da posizione precedente dove è stata generata l'eccezione --- in System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in System.Deployment.Application.ApplicationActivator.UninstallApplicationAndRedirectActivation(Boolean& isShortCut, Uri& deploymentProviderUri, String textualSubId, Uri activationUri) in System.Deployment.Application.ApplicationActivator.CleanApplicationReInstall(Boolean isShortcut, Uri deploymentUri, Uri activationUri, BrowserSettings browserSettings, String textualSubId, String errorPageUrl, String deploymentProviderUrlFromExtension, String shortcutFilePath) in System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl) in System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state) [26/02/2021 14:39:17] System.Deployment.Application.DeploymentException (SubscriptionState) - L'applicazione non è installata. - Origine: System.Deployment - Analisi dello stack: in System.Deployment.Application.SubscriptionStore.CheckShellVisible(SubscriptionState subState) in System.Deployment.Application.SubscriptionStore.UninstallSubscription(SubscriptionState subState) in System.Deployment.Application.ApplicationActivator.UninstallApplicationAndRedirectActivation(Boolean& isShortCut, Uri& deploymentProviderUri, String textualSubId, Uri activationUri) --- Fine traccia dello stack da posizione precedente dove è stata generata l'eccezione --- in System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in System.Deployment.Application.ApplicationActivator.UninstallApplicationAndRedirectActivation(Boolean& isShortCut, Uri& deploymentProviderUri, String textualSubId, Uri activationUri) in System.Deployment.Application.ApplicationActivator.CleanApplicationReInstall(Boolean isShortcut, Uri deploymentUri, Uri activationUri, BrowserSettings browserSettings, String textualSubId, String errorPageUrl, String deploymentProviderUrlFromExtension, String shortcutFilePath) in System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl) in System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state) DETTAGLI TRANSAZIONE ARCHIVIO COMPONENTI Transazione in [26/02/2021 14:39:17] + System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata - Stato: Set - HRESULT: 0x0 + System.Deployment.Internal.Isolation.StoreTransactionOperationType (27) - HRESULT: 0x0

dotnet-wpf-xaml
· 4
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@mranto-2210
Could you analyze the device environment info and user operations for the crashed application to eliminate equipment and operational causes? Did the application crash if it was re-published? Due to the randomness of crashing the app, I cannot give an accurate analysis based on your description.

0 Votes 0 ·

hi daisy,
im sorry for the bad formatting of my post.
I detected that most of crashes reported occurred after creating and downloading a zip file. some users reported a timeout and inmediate application crash; some others got to complete operation. both cases users could not download application from server ("could not uninstall application" error message). I also tried to perform same operation from my computer, and everything works correctly.
When I re-publish application, users can download it correctly.

0 Votes 0 ·

@mranto-2210
Could you can make a sample to creating and downloading a zip file , then publish it on IIS server using ClickOnce to check if it is the reason? I don't know how you implement the file downloading, if it is possible, could you show the code snippet for me to make a demo to reproduce the error?

0 Votes 0 ·
Show more comments

0 Answers