Search code examples
c#visual-studio-2010dynamics-crmpfx

Problem with TemporaryKey.pfx I don't have the password


A client of mine has a problem. He had a Microsoft CRM developper and he left. Now the project remains uncomplete. I've downloaded the source code of the custom applications and I'm not trying to continue the development. I've tried the ClickOne deployment and it pops me with a password input box related to the myapp_TemporaryKey.pfx. I've tried to install on a computer on the network and launch in debugging mode, and I get the same problem, it says :

"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."

And a second error is: "Importing key file "myapp_TemporaryKey.pfx" was canceled

Do you know what can be done to fix that? I have the .PFX file, but not the password.


Solution

  • I went to Project Properties --> Signing tab--> then signed my app using the certificate in the ClickOnce section. In my case, the build was successful.