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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM