I have a few Winform apps, distributed in an intranet with clickonce. Some of them have the same core dlls and use third party components (devExpress). After years without any problem, suddenly when I try to access to one of the .application in the intranet, I have the next error:
System.Runtime.InteropServices.COMException
- Uno de los dispositivos conectados al sistema no funciona. (Excepción de HRESULT: 0x8007001F)
- Origen: System.Deployment
- Seguimiento de la pila:
en System.Deployment.Internal.Isolation.IStore.Transact(IntPtr cOperation, StoreTransactionOperation[] rgOperations, UInt32[] rgDispositions, Int32[] rgResults)
en System.Deployment.Internal.Isolation.Store.Transact(StoreTransactionOperation[] operations, UInt32[] rgDispositions, Int32[] rgResults)
en System.Deployment.Application.ComponentStore.SubmitStoreTransaction(StoreTransactionContext storeTxn, SubscriptionState subState)
en System.Deployment.Application.ComponentStore.ScavengeContext.ScavengeAppsOverQuota(SubInstance[] subs, Int32 deploysToScavenge, Boolean& appExcluded)
en System.Deployment.Application.ComponentStore.ScavengeContext.CheckQuotaAndScavenge()
en System.Deployment.Application.ComponentStore.SubmitStoreTransactionCheckQuota(StoreTransactionContext storeTxn, SubscriptionState subState)
en System.Deployment.Application.ComponentStore.CommitApplication(SubscriptionState subState, CommitApplicationParams commitParams)
en System.Deployment.Application.SubscriptionStore.CommitApplication(SubscriptionState& subState, CommitApplicationParams commitParams)
en System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
en System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl, Uri& deploymentUri)
en System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
--- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
en System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
en System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
Error translation: A device attached to the system is not functioning.
The problems occurs after two or three correct download/execution of different apps, always in the same app. In a phew occasions, I can’t reproduce de problem and the application download, install and run fine. Most of times, it doesn’t works. After this error, I can’t run any of the other .application, not only the first one with the error.
I tried then next things:
-Remove the clickonce cache. (the user \AppData\Local\Apps\2.0 directory). This solve the problem temporally but its returns when I start the application again in a concrete order.
-Remove clickone cache with: rundll32 %windir%\system32\dfshim.dll CleanOnlineAppCache. No effect.
-Redirect the clickonce trace to a file and changing the log level to verbose: HKEY_CURRENT_USER\Software\Classes\Software\Microsoft\Windows\CurrentVersion\Deployment LogVerbosityLevel= 1 and LogFilePath= XXXX. I have more info but I don’t know that its means.
Here, the differences in verbose traces:
DETALLES DE TRANSACCIÓN DEL ALMACÉN DE COMPONENTES
….
* Transacción en [25/04/2019 13:20:10]
+ System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
- Estado: Set
- HRESULT: 0x0
+ System.Deployment.Internal.Isolation.StoreOperationUnpinDeployment
- Estado: Unpinned
- HRESULT: 0x0
- Id. de aplicación: (same Uri .application before actual), Version=3.5.0.10, Culture=neutral, PublicKeyToken=ba9df1847f0b2a9e, processorArchitecture=msil
+ System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
- Estado: Set
- HRESULT: 0x0
+ System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
- Estado: Set
- HRESULT: 0x0
+ System.Deployment.Internal.Isolation.StoreOperationUnpinDeployment
- Estado: Unpinned
- HRESULT: 0x0
- Id. de aplicación: (another Uri .application before actual), Version=3.5.0.10, Culture=neutral, PublicKeyToken=a2f6ca57bfc1fc0f, processorArchitecture=msil
+ System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
- Estado: Set
- HRESULT: 0x0
+ System.Deployment.Internal.Isolation.StoreTransactionOperationType (27)
- HRESULT: 0x8007001f
DETAILED EXECUTION FLOW
[13:19:46] : New subscription state = IsInstalled=True
IsShellVisible=False
CurrentBind=(some Uri .application before actual), Version=3.4.0.12, Culture=neutral, PublicKeyToken=a2f6ca57bfc1fc0f, processorArchitecture=msil/AEAT.TAIIF.ECI.Noticias.exe, Version=3.4.0.12, Culture=neutral, PublicKeyToken=a2f6ca57bfc1fc0f, processorArchitecture=msil, type=win32
PreviousBind=null
PendingBind=null
PendingDeployment=null
ExcludedDeployment=null
DeploymentProviderUri=(some Uri .application before actual with parameters)
MinimumRequiredVersion=null
LastCheckTime=25/04/2019 11:19:44
UpdateSkipTime=01/01/0001 0:00:00
UpdateSkippedDeployment=null
appType=0
[13:19:53] : Changing Subscription Properties:
[13:19:53] : Old subscription state = IsInstalled=True
IsShellVisible=False
CurrentBind=(another Uri .application before actual), Version=3.5.0.10, Culture=neutral, PublicKeyToken=ba9df1847f0b2a9e, processorArchitecture=msil/AEAT.TAIIF.NoticiasECI.exe, Version=3.5.0.10, Culture=neutral, PublicKeyToken=ba9df1847f0b2a9e, processorArchitecture=msil, type=win32
PreviousBind=null
PendingBind=null
PendingDeployment=null
ExcludedDeployment=null
DeploymentProviderUri=(another Uri .application before actual with parameters)
MinimumRequiredVersion=null
LastCheckTime=25/04/2019 11:17:20
UpdateSkipTime=01/01/0001 0:00:00
UpdateSkippedDeployment=null
appType=0
Thanks in advance!
User contributions licensed under CC BY-SA 3.0