删除ClickOnce应用程序文件后,没有通过控制面板正常卸载,控制面板中显示该程序,但是无法卸载也无法安装,出现如下错误:
- 平台版本信息
- Windows : 6.1.7601.65536 (Win32NT)
- Common Language Runtime : 4.0.30319.18444
- System.Deployment.dll : 4.0.30319.34244 built by: FX452RTMGDR
- clr.dll : 4.0.30319.18444 built by: FX451RTMGDR
- dfdll.dll : 4.0.30319.34244 built by: FX452RTMGDR
- dfshim.dll : 4.0.31106.0 (Main.031106-0000)
-
-
- 源
- 部署 URL : http://192.168.1.23/Client/Client.application
-
-
- 错误摘要
- 以下是错误摘要,这些错误的详细信息列在该日志的后面。
- * 激活 http://192.168.1.23/Client/Client.application 导致异常。 检测到下列失败消息:
- + 参照的程序集没有安装在系统上。 (异常来自 HRESULT:0x800736B3)
-
-
- 组件存储事务失败摘要
- 未检测到任何事务错误。
-
-
- 警告
- 执行此操作的过程中未出现任何警告。
-
-
- 操作进度状态
- * [2015/2/4 10:24:13] : 已启动 http://192.168.1.23/Client/Client.application 的激活过程。
-
-
- 错误详细信息
- 执行此操作期间检测到下列错误。
- * [2015/2/4 10:24:13] System.Runtime.InteropServices.COMException
- - 参照的程序集没有安装在系统上。 (异常来自 HRESULT:0x800736B3)
- - 源: System.Deployment
- - 堆栈跟踪:
- 在 System.Deployment.Internal.Isolation.IStore.GetAssemblyInformation(UInt32 Flags, IDefinitionIdentity DefinitionIdentity, Guid& riid)
- 在 System.Deployment.Application.ComponentStore.GetAssemblyManifest(DefinitionIdentity asmId)
- 在 System.Deployment.Application.ComponentStore.GetSubscriptionStateInternal(DefinitionIdentity subId)
- 在 System.Deployment.Application.SubscriptionStore.GetSubscriptionStateInternal(SubscriptionState subState)
- 在 System.Deployment.Application.SubscriptionState.Validate()
- 在 System.Deployment.Application.SubscriptionStore.CheckAndReferenceApplication(SubscriptionState subState, DefinitionAppId appId, Int64 transactionId)
- 在 System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirectBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
- 在 System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)
- 在 System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
- 在 System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
-
-
- 组件存储事务详细信息
- 没有可用的事务信息。
知道出现把注册表删除就可以,但是一直找不到注册表,通过清理注册表也不行,后来看到在网上看到《ClickOnce部署Winform程序的方方面面》,才找到注册表:HKEY_CURRENT_USER\Software\Classes\Software\Microsoft\Windows\CurrentVersion\Deployment\SideBySide\2.0\PackageMetadata,然后把原来的注册表删了,就可以安装了。
http://blog.csdn.net/zsran022610/article/details/43482809