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
- Verify that the deployment is correctly signed.
- Verify that "Enable ClickOnce security settings is checked" and "This is a full trust application".
- In publish tab, verify that you have the correct prerequisites checked, nothing more, nothing less.
- 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.
- 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.
- 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.
精彩评论