Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The deployment identity at the deployment provider is not the same as the original deployment identity

i have an application that is causing me alot of trouble. the guy who created it doesnt work at our company anymore and it is up to me to fix and release the program for our windows 7 machines

However i get the following stacktrace:

    PLATFORM VERSION INFO
    Windows             : 6.1.7601.65536 (Win32NT)
    Common Language Runtime     : 4.0.30319.18063
    System.Deployment.dll       : 4.0.30319.17929 built by: FX45RTMREL
    clr.dll             : 4.0.30319.18063 built by: FX45RTMGDR
    dfdll.dll           : 4.0.30319.17929 built by: FX45RTMREL
    dfshim.dll          : 4.0.41209.0 (Main.041209-0000)

SOURCES
    Deployment url          : file://nkm18427/PRV-JSKR/Backup/DOPeSolutions.application
    Deployment Provider url     : http://nkm18f53:8181/DRIFT/DOPe%20Data%20Management/DOPeSolutions.application
                        Server      : Apache-Coyote/1.1

ERROR SUMMARY
    Below is a summary of the errors, details of these errors are listed later in the log.
    * Activation of \\nkm18427\PRV-JSKR\Backup\DOPeSolutions.application resulted in exception. Following failure messages were detected:
        + The deployment identity at the deployment provider is not the same as the original deployment identity.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
    No transaction error was detected.

WARNINGS
    There were no warnings during this operation.

OPERATION PROGRESS STATUS
    * [05-03-2014 13:45:05] : Activation of \\nkm18427\PRV-JSKR\Backup\DOPeSolutions.application has started.

ERROR DETAILS
    Following errors were detected during this operation.
    * [05-03-2014 13:45:05] System.Deployment.Application.InvalidDeploymentException (SubscriptionSemanticValidation)
        - The deployment identity at the deployment provider is not the same as the original deployment identity.
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.DownloadManager.FollowDeploymentProviderUri(SubscriptionStore subStore, AssemblyManifest& deployment, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options)
            at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)
            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.

Can anyone tell me why this is happening and how i can fix it?

like image 998
Marc Rasmussen Avatar asked Mar 05 '14 12:03

Marc Rasmussen


3 Answers

Problem

I usually get this error whenever I tried to publish a click once app with a different target architecture then what is currently installed on a machine (x86 vs x64)

OR

When the signature/certificate of the application is different than the original publish

Solution

I would try making sure that your target architecture has not been changed (if you published it originally as x32, make sure the version you are trying to install is still x32)

or

make sure that nothing has changed with the signature settings (if you published originally with a certificate, make sure it is still the same certificate)

If you made these changes on purpose however, all you'll need to do on the host machine is uninstall the existing application on the machine, and re-install with the version you are trying to install, that should resolve the error and allow you to install the new version.

like image 125
Aaron Avatar answered Sep 20 '22 14:09

Aaron


I just ran into this error message in the following situation. I updated my ClickOnce application to sign the ClickOnce manifests with a trusted certificate issued by my organization. This particular application was using a self-signed certificate in the previous version. This in turn changes the publisherIdentity element (https://msdn.microsoft.com/en-us/library/dd996956.aspx) and it's generated hash in the ClickOnce Deployment Manifest (.application file).

In your situation, it's possible that the previous developer re-signed the application with a different certificate than the previous version. Or perhaps the application had not been signed in the previous version. Judging by the error message you are seeing, this is almost certainly an application that has been published as a ClickOnce application.

Assuming that you have your hands on the code, and that you are using Visual Studio, right-click on the project in Solution Explorer and select Properties. Then click on Signing to see signing details such as whether or not the manifests are signed, and if so, which certificate was used.

like image 24
iCode Avatar answered Sep 20 '22 14:09

iCode


You will get the same exception when you changed the "Publish Location" -> "Installation Folder URL (if different than above)", but forgot to change the following: "Install Mode and Settings" -> "Updates..." -> "Update location (if different than publish location)".

like image 34
AroglDarthu Avatar answered Sep 20 '22 14:09

AroglDarthu