Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I had added .pfx file in my project, It was developed in vs2005.

I have converted this project from vs 2005 to vs 2010.

I have install the certificate again.

now the .pfx file is giving problem. it shows 3 errors, as below...

1.
Error 3 Cannot import the following key file: TemporaryKey.pfx. The key file may be password protected. To correct 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_BB29B0994ABBAB54 SSS

2.
Error 4 Importing key file "CRM_TemporaryKey.pfx" was canceled. CRM

3.
Error 5 The KeyContainer path 'VS_KEY_BB29B0994ABBAB54' is invalid. KeyContainer must point to an existing file. CRM

I cant add another .pfx in to my project, as I have already published my application on client side. If I add new .pfx then its Public key will be changed and error will occur on client side on next publish.

What should I do ?
Posted
Updated 17-May-11 20:59pm
v2

1 solution

I've found this an issue with 2010 projects as well. Creating an empty file with the name of the KeyContainer path has help (ie in this case an empty file called VS_KEY_BB29B0994ABBAB54) This at least helps with error dot point 3 you've listed.
 
Share this answer
 
v3
Comments
FlashAbercrombie 11-Jul-12 16:32pm    
Thanks! Saved my butt.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900