2011-12-16 109 views
1

我只是試圖更新發布到我的.NET 4 WPF申請並收到以下錯誤:.NET 4的ClickOnce過期的證書

Error 2 An error occurred while signing: Failed to sign bin\Debug\app.publish\setup.exe. SignTool Error: The signer's certificate is not valid for signing. SignTool Error: An error occurred while attempting to sign: bin\Debug\app.publish\setup.exe

我檢查的證書,纔到期最後一個月,這樣的爲什麼我收到此錯誤信息的原因...

現在,根據MSDN文章Certificate Expiration in ClickOnce Deployment,我可以創建新的證書,發佈,一切都應該罰款,但因爲我不想要以解決這個到期的證書問題,同樣的條款如下:

You can use MakeCert to create your own certificate and specify the end date so you don’t have to deal with the expired certificate issue until you upgrade to .NET 4.0 and no longer have to deal with it.

我該如何達到「不再需要處理它」的程度?

我可以在我的應用程序屬性的簽名部分取消選中「簽署ClickOnce清單」複選框,而不必再考慮這是一個.NET 4應用程序嗎?

如果不是,我可以使用makecert.exe工具生成一個在2099年到期的證書並使用它來簽署我的申請?

如果不是,我該如何避免處理使用.NET 4的證書?

+0

如果沒有答案,別人有我在2099創建使用與到期日makecert一個新的證書同樣的問題並使用它簽署ClickOnce清單...安裝的應用程序更新正常,不必卸載/重新安裝... – 2011-12-16 21:39:21

回答

0

我使用makecert創建了一個新證書,並且過期日期爲2099,並用它來簽署ClickOnce清單。

安裝的應用程序更新的罰款,我沒有卸載/重裝......