ClickOnce certificate renew deploy

人盡茶涼 提交于 2020-01-14 04:40:27

问题


I've deployed a ClickOnce application several years ago with the ClickOnce to production. The (purchased) certificate expired a few days ago. I bought a new certificate and I installed it on my machine. I tried to deploy the application, and I see a prompt that warns me about the different key used in the previously deployed application.

I read this in order to solve this problem: Certificate Expiration in ClickOnce Deployment which is not maintained anymore. According to the documentation if I target .NET 4.0 there should be any problem. So I overwrote the previous deployed application and now, in (my test environment) the user is getting "Application cannot be started. Contact the application vendor." and in the details I get this:

Below is a summary of the errors, details of these errors are listed later in the log. * Activation of C:\Users\User\Desktop\Appname.appref-ms| resulted in exception. Following failure messages were detected: + The deployment identity does not match the subscription.

COMPONENT STORE TRANSACTION FAILURE SUMMARY No transaction error was detected.

WARNINGS There were no warnings during this operation.

OPERATION PROGRESS STATUS * [12-May-17 12:04:33 PM] : Activation of C:\Users\User\Desktop\Appname.appref-ms| has started. * [12-May-17 12:04:33 PM] : Performing necessary update check as specified by the deployment.

ERROR DETAILS Following errors were detected during this operation. * [12-May-17 12:04:33 PM] System.Deployment.Application.DeploymentException (SubscriptionState) - The deployment identity does not match the subscription. - Source: System.Deployment - Stack trace: at System.Deployment.Application.SubscriptionStore.CheckUpdateInManifest(SubscriptionState subState, Uri updateCodebaseUri, AssemblyManifest deployment, Version currentVersion, Boolean& bUpdateInPKTGroup) at System.Deployment.Application.ApplicationActivator.PerformDeploymentUpdate(SubscriptionState& subState, String& errorPageUrl) at System.Deployment.Application.ApplicationActivator.ProcessOrFollowShortcut(String shortcutFile, String& errorPageUrl, TempFile& deployFile) 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.

What should I do in order to avoid this very bad scenario, and how can users update their application without uninstalling the ClickOnce application?

来源:https://stackoverflow.com/questions/43935582/clickonce-certificate-renew-deploy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!