HighTechTalks DotNet Forums  

Question on Mage.exe

Dotnet Security microsoft.public.dotnet.security


Discuss Question on Mage.exe in the Dotnet Security forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Angela Chan
 
Posts: n/a

Default Question on Mage.exe - 04-05-2007 , 01:32 PM






Hi, all,

I'm using mage.exe to update the manifest for my ClickOnce. 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.InvalidDeploymentExc eption (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.Down loadApplicationManifest(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.InvalidDeploymentExc eption (HashValidation)
- File, GUI.exe.manifest, has a different computed hash than specified in
manifest.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.ComponentVerifier.Ve rifyFileHash(String
filePath, Hash hash)
at System.Deployment.Application.ComponentVerifier.Ve rifyFileHash(String
filePath, HashCollection hashCollection)
at
System.Deployment.Application.DownloadManager.Down loadApplicationManifest(AssemblyManifest
deploymentManifest, String targetDir, Uri deploymentUri,
IDownloadNotification notification, DownloadOptions options, Uri&
appSourceUri, String& appManifestPath)




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.