2014-10-27 53 views
0

當我嘗試在BuildMaster中執行我的workfolw時,它拋出以下錯誤。似乎有一個PFX證書問題。當我在Visual Studio中運行相同的解決方案時,它工作正常,沒有任何問題。這是一個現有的應用程序,使用PFX證書和密碼保護。.Net解決方案嘗試使用Inedo BuildMaster構建

你能幫我解決這個問題嗎?

ERROR: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(2482,5): error MSB3326: Cannot import the following key file: . The key file may be password protected. To correct this, try to import the certificate again or import the certificate manually into the current user's personal certificate store.ERROR: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(2482,5): error MSB3321: Importing key file "ppmillinous.pfx" was canceled. INFO: Done building project "wa5invqz.tmp_proj" -- FAILED. INFO: Done building project "POWERPitch.csproj" -- FAILED. INFO: Done building project "POWERPitch.sln" -- FAILED.ERROR: Build failed (msbuild returned 1).

回答

1

我建議做如下:

1)創建一個PFX文件受密碼保護

2)無論是再次導入密碼保護證書或導入密碼保護證書的當前用戶的個人證書存儲。

請注意,如果您使用的pfx文件已受密碼保護,則可以跳過第一步。

+0

我試過這種方式..但我仍然得到相同的錯誤。 – 2014-10-29 14:32:59

+0

在這種情況下,我會建議更新您的問題(A)關於您要做什麼的實際細節和(B)關於您所做的事情的實際細節。 – 2014-10-30 19:50:30

+0

答:我正在嘗試使用BuildMaster構建代碼。首先,我將源代碼帶入BuildMaster,然後在BuildMaster中構建代碼。當我建立它是拋出我的上述錯誤。 「密鑰文件可能受密碼保護,要解決此問題,請嘗試再次導入證書或手動導入證書到當前用戶的個人證書存儲區中。」我嘗試在BuildMaster的Build code文件夾中安裝該證書,但它仍然拋出相同的錯誤 – 2014-10-31 13:52:54