clickonce, VS 2017 and WPF application. crash issue

mr anto 1 Reputation point
2021-02-26T15:29:19.4+00:00

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

XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
778 questions
{count} votes