ClickOnce Deployment Error: different computed hash than specified in manifest

Unknown Coder picture Unknown Coder · Jun 3, 2011 · Viewed 25.5k times · Source

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!

Answer

BentOnCoding picture BentOnCoding · Jun 3, 2011

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