修正使用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

优质内容筛选与推荐>>
1、基于SoCkit的opencl实验1-基础例程
2、对各组的评价
3、IDEA 使用Junit 测试方法
4、密码加密和解密
5、javamail发送邮件中碰到的几个问题


长按二维码向我转账

受苹果公司新规定影响,微信 iOS 版的赞赏功能被关闭,可通过二维码转账支持公众号。

    阅读
    好看
    已推荐到看一看
    你的朋友可以在“发现”-“看一看”看到你认为好看的文章。
    已取消,“好看”想法已同步删除
    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号