Using VS2010 C# express I've made an application.
In the project I've added a couple of text files.
I've Published the project for on the web, but when I try to install it I get this Error:
Application validation did not succeed. Unable to continue
OK Details...
(Details...)
PLATFORM VERSION INFO
Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.239
System.Deployment.dll : 4.0.30319.1 (RTMRel.030319-0100)
clr.dll : 4.0.30319.239 (RTMGDR.030319-2300)
dfdll.dll : 4.0.30319.1 (RTMRel.030319-0100)
dfshim.dll : 4.0.31106.0 (Main.031106-0000)
SOURCES
Deployment url : http://somewebsite.com/software/BarScanner.application
Server : Apache/2
Deployment Provider url : http://somewebsite.com/software/BarScanner.application
Application url : http://somewebsite.com/software/Application%20Files/BarScanner_1_2_1_40/BarScanner.exe.manifest
Server : Apache/2
IDENTITIES
Deployment Identity : BarScanner.application, Version=1.2.1.40, Culture=nl-NL, PublicKeyToken=cd1b788461f30835, processorArchitecture=x86
Application Identity : BarScanner.exe, Version=1.2.1.40, Culture=nl-NL, PublicKeyToken=cd1b788461f30835, processorArchitecture=x86, type=win32
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://somewebsite.com/software/BarScanner.application resulted in exception. Following failure messages were detected:
+ File, changelog.txt, 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
* [7-1-2012 13:17:47] : Activation of http://somewebsite.com/software/BarScanner.application has started.
* [7-1-2012 13:17:47] : Processing of deployment manifest has successfully completed.
* [7-1-2012 13:17:47] : Installation of the application has started.
* [7-1-2012 13:17:47] : Processing of application manifest has successfully completed.
* [7-1-2012 13:17:48] : Found compatible runtime version 4.0.30319.
* [7-1-2012 13:17:48] : Request of trust and detection of platform is complete.
ERROR DETAILS
Following errors were detected during this operation.
* [7-1-2012 13:17:49] System.Deployment.Application.InvalidDeploymentException (HashValidation)
- File, changelog.txt, 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.ComponentVerifier.FileComponent.Verify()
at System.Deployment.Application.ComponentVerifier.VerifyComponents()
at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
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, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
I've been looking around the web where I saw people saying they have to use mage.exe to fix the manifest file, and generate a new hash for the text file. I couldn't find mage.exe in any directory suggested on the web. I've downloaded the .NET 2.0 SDK (though I am using .NET 4.0). I tried to use the mage and mageUI in that SDK, but with no success.
Does anyone know how I can fix this.