Importing key file "filename.pfx" was canceled.

Balaji Birajdar picture Balaji Birajdar · Aug 20, 2011 · Viewed 24.8k times · Source

I downloaded a open source project and was trying to open it in VS 2010. It contained the .pfx file which gives me the above mentioned error while building the project.

I tried signing it using sn -i VS_KEY_GHSTGEDY8755075 but it asks me for the password.

How can I fix this error ?

Answer

unhappyCrackers1 picture unhappyCrackers1 · Oct 11, 2011

I experienced this issue in VS 2005 and the solution was as stated here: http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvcs/thread/c33d7f75-6893-4793-a407-3aa3d49c098c/

I am not familiar with VS 2010, but I imagine that this is the same issue and can be solved in similar fashion.

Open the project properties -> signing

Uncheck the following options:

  1. Sign the clickonce manifests

  2. Sign the assembly

Save the project and try building the solution.