TemporaryKey.pfx was deleted. How to create a new one? RRS feed

  • Question

  • Hi Folks,

    I'm using VS 2010, I have one similar occurrence where I have deleted the TemporaryKey.pfx. Now in order to run my project I get 2 errors.

    Error 1 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. Project1

    Error 2 Importing key file "Project1_TemporaryKey.pfx" was canceled. project1

    I want to create a new key as I dont have the backup. please help me fix this.


    Tuesday, June 1, 2010 4:09 PM


  • Go to the main project's property pages and go to the Signing tab. Click "create test certificate" and put in a password. It will create one for you and add it to the project.


    Click here to visit my ClickOnce blog!
    Microsoft MVP, Client App Dev
    • Marked as answer by Helen Zhou Monday, June 7, 2010 9:47 AM
    Tuesday, June 1, 2010 5:14 PM