Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > ClickOnce Installation when solution contains two exe files
 

ClickOnce Installation when solution contains two exe files

Hi all,
I'm rewriting part of a working application to make it more Vista Friendly.
I have split the program in two, the main program which runs as a standard user and a config program which needs administrator ExecutionLevel so it can create/delete databases in SQL server.

I added a reference to the "CreateUpdateDatabase.exe" file in the main program, so that it would be included with the clickOnce installation. The deploy build creates "CreateUpdateDatabase.exe.deploy" as expected.

When I try to install the program from the server I get the exception below. Removing the reference to the "CreateUpdateDatabase.exe" file, the setup works.
Any ideas? Thanks,
James


ERROR DETAILS
Following errors were detected during this operation.
* [13/03/2008 13.53.06] 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)
James Minns  Thursday, March 13, 2008 12:58 PM
I found the solution: remove the following line from the manifest of the second exe:
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>

James
James Minns  Monday, March 17, 2008 4:57 PM
I found the solution: remove the following line from the manifest of the second exe:
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>

James
James Minns  Monday, March 17, 2008 4:57 PM

You can use google to search for other answers

Custom Search

More Threads

• Needed: tutorial with VS2005/MSBuild, Dotfuscator CE and satellite assemblies
• Reference Paths in publish screen
• Setup project for Windows Service not working!
• How do I reference an installed application?
• Application dependencies
• deployment
• How to change the ClickOnce Publisher Name ?
• Setup and Deployment Issue
• Why only one roll back
• Where is the Documention About the Data ClickOnce Puts in the Registry?