ClickOnce应用程序无法安装/卸载

删除ClickOnce应用程序文件后,没有通过控制面板正常卸载,控制面板中显示该程序,但是无法卸载也无法安装,出现如下错误:

[plain]  view plain  copy
  1. 平台版本信息  
  2.     Windows             : 6.1.7601.65536 (Win32NT)  
  3.     Common Language Runtime     : 4.0.30319.18444  
  4.     System.Deployment.dll       : 4.0.30319.34244 built by: FX452RTMGDR  
  5.     clr.dll             : 4.0.30319.18444 built by: FX451RTMGDR  
  6.     dfdll.dll           : 4.0.30319.34244 built by: FX452RTMGDR  
  7.     dfshim.dll          : 4.0.31106.0 (Main.031106-0000)  
  8.   
  9.   
  10. 源  
  11.     部署 URL          : http://192.168.1.23/Client/Client.application  
  12.   
  13.   
  14. 错误摘要  
  15.     以下是错误摘要,这些错误的详细信息列在该日志的后面。  
  16.     * 激活 http://192.168.1.23/Client/Client.application 导致异常。 检测到下列失败消息:  
  17.         + 参照的程序集没有安装在系统上。 (异常来自 HRESULT:0x800736B3)  
  18.   
  19.   
  20. 组件存储事务失败摘要  
  21.     未检测到任何事务错误。  
  22.   
  23.   
  24. 警告  
  25.     执行此操作的过程中未出现任何警告。  
  26.   
  27.   
  28. 操作进度状态  
  29.     * [2015/2/4 10:24:13] : 已启动 http://192.168.1.23/Client/Client.application 的激活过程。  
  30.   
  31.   
  32. 错误详细信息  
  33.     执行此操作期间检测到下列错误。  
  34.     * [2015/2/4 10:24:13] System.Runtime.InteropServices.COMException  
  35.         - 参照的程序集没有安装在系统上。 (异常来自 HRESULT:0x800736B3)  
  36.         - 源: System.Deployment  
  37.         - 堆栈跟踪:  
  38.             在 System.Deployment.Internal.Isolation.IStore.GetAssemblyInformation(UInt32 Flags, IDefinitionIdentity DefinitionIdentity, Guid& riid)  
  39.             在 System.Deployment.Application.ComponentStore.GetAssemblyManifest(DefinitionIdentity asmId)  
  40.             在 System.Deployment.Application.ComponentStore.GetSubscriptionStateInternal(DefinitionIdentity subId)  
  41.             在 System.Deployment.Application.SubscriptionStore.GetSubscriptionStateInternal(SubscriptionState subState)  
  42.             在 System.Deployment.Application.SubscriptionState.Validate()  
  43.             在 System.Deployment.Application.SubscriptionStore.CheckAndReferenceApplication(SubscriptionState subState, DefinitionAppId appId, Int64 transactionId)  
  44.             在 System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirectBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)  
  45.             在 System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)  
  46.             在 System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)  
  47.             在 System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)  
  48.   
  49.   
  50. 组件存储事务详细信息  
  51.     没有可用的事务信息。  


知道出现把注册表删除就可以,但是一直找不到注册表,通过清理注册表也不行,后来看到在网上看到《ClickOnce部署Winform程序的方方面面》,才找到注册表:HKEY_CURRENT_USER\Software\Classes\Software\Microsoft\Windows\CurrentVersion\Deployment\SideBySide\2.0\PackageMetadata,然后把原来的注册表删了,就可以安装了。



http://blog.csdn.net/zsran022610/article/details/43482809

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值