System.Deployment.Application.InvalidDeploymentException on some machines  
Author Message
Dennis G.





PostPosted: ClickOnce and Setup & Deployment Projects, System.Deployment.Application.InvalidDeploymentException on some machines Top

Hi!

I'm getting the following exception when trying to install my ClickOnce-App on some machines:

PLATFORM VERSION INFO
 Windows    : 5.1.2600.131072 (Win32NT)
 Common Language Runtime  : 2.0.50727.42
 System.Deployment.dll   : 2.0.50727.42 (RTM.050727-4200)
 mscorwks.dll    : 2.0.50727.42 (RTM.050727-4200)
 dfdll.dll    : 2.0.50727.42 (RTM.050727-4200)
 dfshim.dll    : 2.0.50727.42 (RTM.050727-4200)

SOURCES
 Deployment url   : http://www.hide-link.com/
      Server  : WinGate Engine
 Deployment Provider url  : http://www.hide-link.com/
 Application url   : http://www.hide-link.com/
      Server  : WinGate Engine

IDENTITIES
 Deployment Identity  : System3.application, Version=0.5.0.0, Culture=neutral, PublicKeyToken=36e2983302656c54, processorArchitecture=msil

APPLICATION SUMMARY
 * Installable application.

ERROR SUMMARY
 Below is a summary of the errors, details of these errors are listed later in the log.
 * Activation of http://www.hide-link.com/ resulted in exception. Following failure messages were detected:
  + Application manifest has either a different computed hash than the one specified or no hash specified at all.
  + File, System3.exe.manifest, has a different computed hash than specified in manifest.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
 No transaction error was detected.

WARNINGS
 There were no warnings during this operation.

OPERATION PROGRESS STATUS
 * [16.01.2006 13:15:01] : Activation of http://www.hide-link.com/ has started.
 * [16.01.2006 13:15:24] : Processing of deployment manifest has successfully completed.
 * [16.01.2006 13:15:24] : Installation of the application has started.

ERROR DETAILS
 Following errors were detected during this operation.
 * [16.01.2006 13:15:24] 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, System3.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)

COMPONENT STORE TRANSACTION DETAILS
 No transaction information is available.

The odd thing is, that it only occurs on some machines. It works on all developer machines, but it refuses to install on several other computers. The developer machines all have VS 2005 installed while the others only have the .Net 2.0 runtime. These machines all had a previous version of the Application installed, which was properly removed. This was done several times until this exception occured. When installing with another user-account everything works fine. The same thing was done on the developer machines and it still works flawlessly.

Any hints

Thanks,

Dennis



Windows Forms28  
 
 
plexed





PostPosted: ClickOnce and Setup & Deployment Projects, System.Deployment.Application.InvalidDeploymentException on some machines Top

I just got the same thing on an application I was creating with VS 2005.

I tried to deploy it to a machine with .NET 2.0 Framework on it, but it failed with "different computed hash"

The deployment machine has VS 2003 on it, could that be the issue


 
 
Mordy





PostPosted: ClickOnce and Setup & Deployment Projects, System.Deployment.Application.InvalidDeploymentException on some machines Top

Getting the same error here...any clue on where to start solving this Day 2 in the VS 2005 house and I'm getting besieged by problems like this :(

 
 
Nebuchadnezzar





PostPosted: ClickOnce and Setup & Deployment Projects, System.Deployment.Application.InvalidDeploymentException on some machines Top

Did anyone ever find a solution to this I have an application that won't even deploy on the server I created it on. This makes no sense.


 
 
Ignus





PostPosted: ClickOnce and Setup & Deployment Projects, System.Deployment.Application.InvalidDeploymentException on some machines Top

I got the same issue with my application. I went into VS 2005 and changed my file and assembly versions in the project properties window. I then did a manual rebuild all and then a publish again. After that it was working fine.

Ignus


 
 
AllDisplayNamesRBelongToUs





PostPosted: ClickOnce and Setup & Deployment Projects, System.Deployment.Application.InvalidDeploymentException on some machines Top

I still get this error from time to time with no real pattern to it but a reboot of my development machine generally fixes it for a while. Modifying versions and manually rebuilding doesn't fix it for me :(
 
 
mrgreentie





PostPosted: ClickOnce and Setup & Deployment Projects, System.Deployment.Application.InvalidDeploymentException on some machines Top

IN VS2005 in your soultion explorer window

1> click "Properties" a new window will open

2> click signing on the left tab row

3> then place a check in the box that says "click once manifest"

4> then click the "create test certificate button"

5> then rebuild your project

6> then publish it.

I dont know why this works but its the only way I can get my apps published in VS2005. I never used to have these probs in VS2003 but I do in VS2005.



 
 
Andy Boura





PostPosted: ClickOnce and Setup & Deployment Projects, System.Deployment.Application.InvalidDeploymentException on some machines Top

I followed this advice - still no luck - but then I changed the .pfx file this creates to "copy if newer" in the "copy to output directory" field of the properties panel. Would be nice to know what this is all about though if anyone knows...
 
 
elvisrs





PostPosted: ClickOnce and Setup & Deployment Projects, System.Deployment.Application.InvalidDeploymentException on some machines Top

mrgreentie's trick worked well for me i've had the same problem

 
 
Ryan Taylor





PostPosted: ClickOnce and Setup & Deployment Projects, System.Deployment.Application.InvalidDeploymentException on some machines Top

mrgreentie's trick also worked for me, thanks a lot!

 
 
Balu Vasudev





PostPosted: ClickOnce and Setup & Deployment Projects, System.Deployment.Application.InvalidDeploymentException on some machines Top

hi guys,

I also had the same issue. My app was working fine until i changed the IE proxy settings of the test machine. So i tried changing it back to my default and the issue was resolved. It even works when i dont use any proxies .

Does the certificate created by VS'05 has some kinda reference to the IE proxy settings


 
 
Kevbert





PostPosted: ClickOnce and Setup & Deployment Projects, System.Deployment.Application.InvalidDeploymentException on some machines Top

Thanks Mrgreentie this solved my problem with Visual Basic 2005 Express.


 
 
rajeevsahu





PostPosted: ClickOnce and Setup & Deployment Projects, System.Deployment.Application.InvalidDeploymentException on some machines Top

hi all... i am getting the followings in a notepad.. when i try to install the ClickOnce App..so plz any body help me to solve my problem...

PLATFORM VERSION INFO
Windows : 5.1.2600.131072 (Win32NT)
Common Language Runtime : 2.0.50727.42
System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200)
mscorwks.dll : 2.0.50727.42 (RTM.050727-4200)
dfdll.dll : 2.0.50727.42 (RTM.050727-4200)
dfshim.dll : 2.0.50727.42 (RTM.050727-4200)

SOURCES
Deployment url : file:///C:/ClickOnce/SlidingDoor.application
Application url : file:///C:/ClickOnce/SlidingDoor.exe.manifest

IDENTITIES
Deployment Identity : Sliding Door.app, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3d975ad6acc4044c, processorArchitecture=msil

APPLICATION SUMMARY
* Online only application.

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\ClickOnce\SlidingDoor.application resulted in exception. Following failure messages were detected:
+ Application manifest has either a different computed hash than the one specified or no hash specified at all.
+ File, Sliding Door.exe.manifest, has a different computed hash than specified in manifest.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [6/11/2007 5:25:46 PM] : Activation of C:\ClickOnce\SlidingDoor.application has started.
* [6/11/2007 5:25:48 PM] : Processing of deployment manifest has successfully completed.
* [6/11/2007 5:25:48 PM] : Installation of the application has started.

ERROR DETAILS
Following errors were detected during this operation.
* [6/11/2007 5:25:48 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, Sliding Door.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)

COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.

thanks rajeev


 
 
SIR Alex





PostPosted: ClickOnce and Setup & Deployment Projects, System.Deployment.Application.InvalidDeploymentException on some machines Top

Publish it TWICE after each code change - works for me.

 
 
johnly Sam





PostPosted: ClickOnce and Setup & Deployment Projects, System.Deployment.Application.InvalidDeploymentException on some machines Top

mrgreentie's trick worked well for me i've had the same problem. Thannx