Jaa


Clickonce: , has a different computed hash than specified in manifest

Clickonce Log

=============

Following errors were detected during this operation.
* [9/27/2008 4:11:03 PM] System.Deployment.Application.InvalidDeploymentException (HashValidation)
  - File, <Filename>, has a different computed hash than specified in manifest.
  - Source: System.Deployment
  - Stack trace:
   at System.Deployment.Application.ComponentVerifier.VerifyFileHash(String filePath, Hash hash)
   at System.Deployment.Application.ComponentVerifier.VerifyFileHash(String filePath, HashCollection hashCollection)
   at System.Deployment.Application.ComponentVerifier.FileComponent.Verify()
   at System.Deployment.Application.ComponentVerifier.VerifyComponents()
   at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
   at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
   at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
   at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension)
   at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)

 

Workaround

===========

This workaround must be applied to all machines that publish this solution or gets this Error)

change %windir%\Microsoft.Net\Framework\v2.0.50727\Microsoft.Common.targets (should
be on or around line 3173, easy way to search is search on PublishOnlyDependsOn):
You should have similar Configuration information, add _CopyManifestFiles

===========================================

<PropertyGroup>
<PublishOnlyDependsOn>
SetGenerateManifests;
PublishBuild;
BeforePublish;
GenerateManifests;
CleanPublishFolder;
_CopyManifestFiles;
_CopyFilesToPublishFolder;
_DeploymentGenerateBootstrapper;
ResolveKeySource;
_DeploymentSignClickOnceDeployment;
AfterPublish
</PublishOnlyDependsOn>
</PropertyGroup>

Comments

  • Anonymous
    August 19, 2009
    The comment has been removed

  • Anonymous
    November 17, 2009
    You need to regenerate the application manifest. This happens when you change file contents and do not update your manifests accordingly.

  • Anonymous
    March 25, 2013
    The comment has been removed

  • Anonymous
    December 18, 2013
    I am receiving this same error and understand that the manifest files need to be updated using mage.exe. I have not found a good solution on how this can be done. I am not sure what commands need to be ran and which files need to be updated. I have deleted my bin and obj folders to make sure the files are being re-created, but no luck.