修正使用ClickOnce升级程序遇到HRESULT: 0x800736B3问题

解释方法参考微软MSDN解释

 

Sometime when I start my Click Once application I have an exception "The referenced assembly is not installed on your system. (Exception from HRESULT: 0x800736B3)".
After this message, I can't restart my application, and if I uninstall with "remove program" my application doesn't uninstall.
I found many post to solve this problem, but none to describe the causes.
The only solution is to uninstall all Click Once applications (if the application wants to uninstall), deleted the folder "%userprofile%\Local Settings\Apps", and reinstall all my Click Once applications.

In my environment we use 5 Click Once applications from 180 sessions (computers and terminal server sessions), and problems occur on several computers and on different applications.

It happens spontaneously and I would like to know the cause.

I join the log file from Click Once.

 

参考网址:http://connect.microsoft.com/VisualStudio/feedback/details/354842/start-click-once-application-exception-hresult-0x800736b3#

 

为了方便使用,我写了一个BAT程序,直接执行,代码很简单,具体如下:

 

@echo off
cd %userprofile%\Local Settings\Apps\
rd 2.0 /s/q
@echo Remove old version done. Please click any key to continue.
pause

代码下载地址:CleanOldVersion.zip

转载于:https://www.cnblogs.com/songhaipeng/archive/2012/06/12/2546823.html

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值