Visual Studio ClickOnce部署-证书到期 [英] Visual Studio ClickOnce deployment - certificate expiration

查看:86
本文介绍了Visual Studio ClickOnce部署-证书到期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows窗体应用程序的ClickOnce部署中遇到问题。当我建立新的安装程序,并尝试将其以以前的安装程序照常导出时,Visual Studio出现,指出我的证书已过期。

I have a problem with a ClickOnce deployment of a Windows Forms application. When I built the new setup, and tried to export it overwriting as usual the previous setup, Visual Studio came up stating that my certificate is expired.

当您收到错误消息您尝试在用于签署安装的证书过期后尝试更新Visual Studio 2005 ClickOnce应用程序 ,并且 RenewCert-工作版本 。但是这些解决方案不适用于我的情况。

This behaviour is described in You receive an error message when you try to update a Visual Studio 2005 ClickOnce application after the certificate that was used to sign the installation expires and there is a workaround in RenewCert - Working Version. But these solutions are not applicable in my situation.

另一种解决方法是将部署服务器的系统日期恢复到证书到期日期之前的日期(在部署操作期间) )-但我认为这是一次最后机会。

Another workaround involves taking back the system date of the deployment server to a date before the certificate expiry date (during the deployment operations) - but I see this as a very "last chance".

如何解决此问题?我可以尝试其他解决方法吗?

How can I fix this problem? Is there another workaround I can try?

推荐答案

我找到了一个博客条目 ClickOnce和过期代码签名证书 ,它描述了一种使应用程序自行删除并启动新的ClickOnce安装。它对我有用。

I found a blog entry, ClickOnce and Expiring Code Signing Certificates by James Harte, that describes a method to have your application remove itself and launch the new ClickOnce install. It worked for me.

这篇关于Visual Studio ClickOnce部署-证书到期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆