开发者

How to reset ClickOnce for a project

I have a normal project and use ClickOnce. Today, following a new implementation, ClickOnce did not work. So I used a setup. Now that the day is over and that I have spent several hours trying to fix ClickOnce by every possible mean, it simply won't work. It publishes fine, but when installing from there, it says that it stopped functionning with the following error:

Microsoft .NET ClickOnce Utilit开发者_JS百科y stopped functionning

Is there a way I could just reset all ClickOnce to default like I never used it? I can't find any, but it has to exist.

Thank you!


Try

  1. Verify that the deployment is correctly signed.
  2. Verify that "Enable ClickOnce security settings is checked" and "This is a full trust application".
  3. In publish tab, verify that you have the correct prerequisites checked, nothing more, nothing less.
  4. Verify that the correct application files are checked and set to required. I find when I have "myaplication.exe.manifest" unchecked my users get some serious XML errors.
  5. Make sure you use the correct paths in the "publishing folder" and "installation folder". I also find this throwing XML errors when something is incorrect.
  6. Go into your windows profile temp folder and delete everything. I use a tool called CCleaner (free tool)...


After A LOT of trial and error, I ended up fixing the issue. In the project's properties/security menue, I unchecked the 'Activate ClickOnce security parameters' and published. It did recheck the box by itself, but the application published and launched successfully.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜