ClickOnce error after deploying — has a different computed hash than specified in manifest

丶灬走出姿态 提交于 2019-12-23 08:28:54

问题


Afer deploying my VSTO add-in with ClickOnce, I get the following error message when trying to launch setup.exe:

File, Addin.resources.dll, has a different computed hash than specified in manifest.

Why is this happening? What can I do to fix this?


回答1:


I was able to resolve this just by doing a clean build and publish. For some reason the manifest wasn't updated like it was supposed to.




回答2:


I'm using Visual Studio 2013 SP2, and am having the same issue.

Regularly, I will create a new release of our Excel Addin by Rebuilding the solution in VS, signing it, deploying it, but it is uninstallable.

If I then quit Visual Studio, then run Visual Studio again, Rebuild and Redeploy, then it'll work without any problems. Which is fine... but, of course, it means each time I deploy, I need to check that the damn thing will install okay !

It's worrying that VS continues to build installables which quietly contain this issue.

There are plenty of articles mentioning this bug, errr, issue (some from 8 years ago !!), suggesting I need to "rebuild my manifest file", but why doesn't this happen automatically when a do Rebuild in Visual Studio..?

ClickOnce Deployment Issue

ClickOnce Deployment Error



来源:https://stackoverflow.com/questions/1312911/clickonce-error-after-deploying-has-a-different-computed-hash-than-specified

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!