RE: Question on Mage.exe



I just find out I miss a step to update the deployment manifest

mage -Update GUI.application -AppManifest C:\Inetpub\wwwroot\GUI.exe.manifest

It works after that step.

"Angela Chan" wrote:

I'm not sure this is the group that I should post my questions, if not,
please refer me to the right one. Thanks

I have .net 2.0 in Microsoft Window Server 2003 Web Edition server, I'm
using mage.exe to update the manifest for my ClickOnce application. The
following is the commands that I use to update and sign

mage -Update GUI.exe.manifest -fd .\temp -Version 5.0.2.6
mage -Sign GUI.exe.manifest -CertFile tempkey.pfx -Password test
mage -Sign GUI.application -CertFile tempkey.pfx -Password test

However, when I click on GUI.application file, I got "Application manifest
has either a different computed hash than the one specified or no hash
specified at all. " and "File, GUI.exe.manifest, has a different computed
hash than specified in manifest."

The following is the detail error, does anyone know how to fix it? Thanks

Angela

ERROR DETAILS
Following errors were detected during this operation.
* [4/5/2007 1:30:50 PM]
System.Deployment.Application.InvalidDeploymentException (HashValidation)
- Application manifest has either a different computed hash than the one
specified or no hash specified at all.
- Source: System.Deployment
- Stack trace:
at
System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest
deploymentManifest, String targetDir, Uri deploymentUri,
IDownloadNotification notification, DownloadOptions options, Uri&
appSourceUri, String& appManifestPath)
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)
at
System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Deployment.Application.InvalidDeploymentException (HashValidation)
- File, GUI.exe.manifest, 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.DownloadManager.DownloadApplicationManifest(AssemblyManifest
deploymentManifest, String targetDir, Uri deploymentUri,
IDownloadNotification notification, DownloadOptions options, Uri&
appSourceUri, String& appManifestPath)



.



Relevant Pages

  • ClickOnce and Side-by-Side com components
    ... + Parsing and DOM creation of the manifest resulted in error. ... COMPONENT STORE TRANSACTION FAILURE SUMMARY ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Does .NET detect alterations to an assembly?
    ... "The common language runtime also performs a hash verification; ... of each file as it existed when the manifest was built. ... > Please do not send email directly to this alias, ... will the alteration at least be ...
    (microsoft.public.dotnet.security)
  • Clickonce file association
    ... I'm having difficulty implementing a Clickonce deployment with file ... the manifest may not be valid or the file could not be opened. ...
    (microsoft.public.dotnet.general)
  • Re: Using VC8 linker to generate isolated app manifest with dependencies.
    ... You can use the platform SDK utility Mt.exe to generate hash. ... Mt.exe generates hashes using the CryptoAPI implementation of the Safe Hash ... already integrated the platform SDK's manifest tool. ... option in the project Property Pages dialog. ...
    (microsoft.public.dotnet.languages.vc)