我有一些Winform应用程序,它们通过clickonce分布在Intranet中。其中一些具有相同的核心dll,并使用第三方组件(devExpress)。 多年没有任何问题之后,突然当我尝试访问Intranet中的.application之一时,我遇到了下一个错误:
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)
错误翻译:连接到系统的设备不起作用。
在始终在同一个应用程序中正确下载/执行了不同应用程序两次或三个之后,就会出现问题。在偶尔的情况下,我无法重现问题,并且无法下载,安装和运行该应用程序。大多数情况下,它不起作用。发生此错误之后,我将无法运行其他任何.application,不仅是第一个出现错误的应用程序。
我尝试了接下来的事情:
-删除clickonce缓存。 (用户\ AppData \ Local \ Apps \ 2.0目录)。这样可以暂时解决问题,但是当我以具体顺序重新启动应用程序时,它会返回。
-使用以下命令删除clickone缓存:rundll32%windir%\ system32 \ dfshim.dll CleanOnlineAppCache。没有效果。
-将clickonce跟踪重定向到文件,并将日志级别更改为详细:HKEY_CURRENT_USER \ Software \ Classes \ Software \ Microsoft \ Windows \ CurrentVersion \ Deployment LogVerbosityLevel = 1和LogFilePath = XXXX。我有更多信息,但我不知道它的意思。
在这里,详细痕迹的区别:
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
谢谢!