Question on Mage.exe

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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)
 
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 said:
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)
 
Hi AngelaCha,

Can you please send me the code snippet which is working for you to my email id.

Thanks in advance.

Regards,
Prakash



AngelaCha wrote:

I just find out I miss a step to update the deployment manifestmage -Update
05-Apr-07

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

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

It works after that step

:

Previous Posts In This Thread:

Question on Mage.exe
I'm not sure this is the group that I should post my questions, if not,
please refer me to the right one. Thank

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 sig

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

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? Thank

Angel

ERROR DETAIL
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.Deploymen
- 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.Deploymen
- 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)

I just find out I miss a step to update the deployment manifestmage -Update
I just find out I miss a step to update the deployment manifes

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

It works after that step

:

EggHeadCafe - Software Developer Portal of Choice
ASP.NET Membership and Roles in Silverlight 3
http://www.eggheadcafe.com/tutorial...62-48ad5c7f70b4/aspnet-membership-and-ro.aspx
 
Hi My email id is (e-mail address removed)



gnanaprakash rajamanickam wrote:

I just find out I miss a step to update the deployment manifestmage
06-Nov-09

Hi AngelaCha,

Can you please send me the code snippet which is working for you to my email id.

Thanks in advance.

Regards,
Prakash

Previous Posts In This Thread:

EggHeadCafe - Software Developer Portal of Choice
Slipstreaming and Unattended Windows Media Creation
http://www.eggheadcafe.com/tutorial...e-4f37a6bdfdc5/slipstreaming-and-unatten.aspx
 
Back
Top