Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ClickOnce Deployment Error: different computed hash than specified in manifest

I keep on running across this error when trying to deploy via ClickOnce

File, image.jpg, has a different computed hash than specified in manifest.

I realize that this is an error that has a lot of google results but I have been unable to resolve this. The stranger part is that this ClickOnce package has been deployed on a variety of other machines (at least 30) without any issues - this is only happening on one specific machine with Windows 7 and x64.

On the one hand, I have checked the manifest file and the version numbers don't match as they should and I've heard that this can be the cause of the error. This doesnt make sense because I checked the server the files are on and everything matches there.

On other hand, I know this package works on other machines and this is the first machine coming up with this error.

Finally, I've also tried all the "usual" fixes for this. I have signed the package, I have erased all files from the deployment server, I have cleaned, rebuilt and redeployed the application and none of these work.

Help!

like image 846
Unknown Coder Avatar asked Jun 03 '11 18:06

Unknown Coder


2 Answers

You need to regenerate the application manifest. This happens when you change file contents and do not update your manifests accordingly.

Mage.exe MSDN Docs

like image 86
BentOnCoding Avatar answered Oct 07 '22 22:10

BentOnCoding


We were deploying to 2 servers using the same URL, with the routers load-balancing between them. Deploying to the 2 servers resulted in differences between the manifest files on each server, and the error. What worked was to deploy to only one server, and then copy the application folder to the other server.

like image 38
Graham Laight Avatar answered Oct 07 '22 23:10

Graham Laight