我有一个ClickOnce应用程序。在一台机器上- Windows 7(可以在其他机器上运行)-升级失败-安装由Apache提供服务。整个日志是...很长,但唯一的错误是:
ERROR DETAILS
Following errors were detected during this operation.
* [26.01.2010 10:55:07] System.Runtime.InteropServices.COMException
- A device attached to the system is not functioning. (Exception from HRESULT: 0x8007001F)
- Source: System.Deployment
- Stack trace:
at System.Deployment.Internal.Isolation.IStore.Transact(IntPtr
cOperation, StoreTransactionOperation[] rgOperations, UInt32[] rgDispositions, Int32[] rgResults)
at System.Deployment.Internal.Isolation.Store.Transact(StoreTransactionOperation[] operations, UInt32[] rgDispositions, Int32[] rgResults)
at System.Deployment.Application.ComponentStore.SubmitStoreTransaction(StoreTransactionContext storeTxn, SubscriptionState subState)
at System.Deployment.Application.ComponentStore.SubmitStoreTransactionCheckQuota(StoreTransactionContext storeTxn, SubscriptionState subState)
at System.Deployment.Application.ComponentStore.CommitApplication(SubscriptionState subState, CommitApplicationParams commitParams)
at System.Deployment.Application.SubscriptionStore.CommitApplication(SubscriptionState& subState, CommitApplicationParams commitParams)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.ConsumeUpdatedDeployment(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentUpdate(SubscriptionState& subState, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ProcessOrFollowShortcut(String shortcutFile, String& errorPageUrl, TempFile& deployFile)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
COMPONENT STORE TRANSACTION DETAILS
* Transaction at [26.01.2010 10:55:07]
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: 9P1J1J04.O7B.application
[Cut.. More of the same with HRESULT 0x0]
+ System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
- Status: Set
- HRESULT: 0x0
+ System.Deployment.Internal.Isolation.StoreTransactionOperationType (27)
- HRESULT: 0x8007001f
这不是很有帮助。有没有人经历过类似的事情,并找到了解决方案?我听说过将安装文件设为只读可能会导致这种情况,但我在C:\Users\testuser.TESTDOMAIN\AppData\Local\Apps\2.0下找不到任何只读文件
发布于 2010-02-05 23:14:00
在ClickOnce和Kensington轨迹球鼠标驱动程序之间有一个被证实的冲突(随机的,我知道)。带有鼠标驱动程序的计算机尝试运行ClickOnce应用程序时将收到“连接到系统的设备无法正常工作”的信息。错误。
希望这能有所帮助。
发布于 2010-12-18 02:10:18
参见。
发布于 2012-04-02 12:35:01
当我为我的应用程序实现this fix时,我遇到了这个错误,在升级时丢失了自定义设置。
问题是,一旦应用程序重新启动,我就在自定义应用程序上下文的构造函数中调用了Settings.Default.Upgrade()
。
我通过在应用程序升级后立即升级设置,然后重新启动它来消除错误(省略了错误处理):
ApplicationDeployment ad = ApplicationDeployment.CurrentDeployment;
UpdateCheckInfo info = ad.CheckForDetailedUpdate();
if (info.UpdateAvailable)
{
ad.Update();
UpgradeSettings(); // this calls "Settings.Default.Upgrade()" if necessary
System.Windows.Forms.Application.Restart();
}
https://stackoverflow.com/questions/2138683
复制相似问题