I am deploying a WPF app using mage.exe graphical tool. I am following the instructions in msdn article "Walkthrough: Manually deploying a clickonce application". But when I do this I am getting the issue
System.Deployment.Application.InvalidDeploymentException (RefDefValidation) - Reference in the manifest does not match the identity of the downloaded assembly MyProductSiteServer.exe. - Source: System.Deployment - Stack trace: at System.Deployment.Application.DownloadManager.ProcessDownloadedFile(Object sender, DownloadEventArgs e) at System.Deployment.Application.FileDownloader.DownloadModifiedEventHandler.Invoke(Object sender, DownloadEventArgs e) at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next) at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles() at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState) 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)
The question 'Error Deploying ClickOnce application - Reference in the manifest does not match the identity of the downloaded assemble' on stackoverflow is exactly the the issue I am having. When I try the solution given there I am able to publish and install my application but only when I do this from VS12. When I do the procedure from VS13 and try to deploy I am getting the above error.
Note: I am able to deploy the application in both scenarios. The problem comes when I am trying to install the deployed application.
(Sorry for not able to post the links. When trying to post links MSDN is not permitting me to saying they need to verify my account. Any idea on how to solve this so that from next time I will be able to provide links)