2013-04-23 96 views
0

我有一個最初在Visual Studio 2008中創建的Visual Studio 2010 VSTO Outlook添加項目.VSTO dll項目使用VeriSign證書(Pfx文件)簽名。當這個項目是在VS 2008下創建的時候,在新的開發者機器上構建它沒有任何問題。現在,VS 2010下,我們得到下面的生成錯誤:在開發人員計算機上在證書存儲區中安裝威瑞信證書的問題

"Cannot import the following key file: Blah.pfx. The key file may be password protected. To corrrect this, try to import the certificate again or manually install the certificate to the Strong Name CSP with the following key container name: VS_KEY_blahblahblahblah"

有一段時間,我能夠用SN.EXE -i將證書手動安裝到強名稱CSP,作爲錯誤提示,一切都很好。現在,我得到以下神祕的錯誤消息,當我嘗試使用SN.EXE -i來安裝證書:

"Failed to parse the PKCS#12 blob in blah.pfx -- An internal error occurred"

有誰知道是什麼原因導致這種故障,以及如何解決它?我見過一些關於在Microsoft/Crypto/RSA下的MachineKeys文件夾設置權限的帖子,我試過了,但仍然得到相同的錯誤信息。

回答

0

我最終爲此問題打開了Microsoft Premier支持事件,結果證明我們的證書已損壞。解決方案是用新的證書替換它。