Friday, July 6, 2007

Problems when signing my ClickOnce application

When I tried to sign my ClickOnce application, I received the following error:

Unable to find manifest signing certificate in the certificate store.

I’ve noticed that even after removing the sign option in the project properties page, the .csproj file (opened with notepad) still contained parameters indicating that the application needed to be signed.


<SignManifests>true<SignManifests>
<ManifestCertificateThumbprint
>ACBE668D16D794DA9E35301D49C834864C4D9C2A<ManifestCertificateThumbprint>
<ManifestKeyFile>GuiWinApp_TemporaryKey.pfx<ManifestKeyFile>

After removing these lines of code and reselecting the .snk file in the property pages, everything worked fine.

2 comments:

Anonymous said...

Hey there! Just wanted to say THANKS! I was pulling my hair out looking for a solution to this! Your solution worked great. I guess there is a bug somewhere in this part of the VS2005 IDE that doesn't correctly set all of the parameters in the .proj file. Anyway, THANKS!
Mark, UK.

Peter Verbist said...

Thanks a lot!

That did the trick.