Unable to find manifest signing certificate in the certificate store.

Siv
Siv used Ask the Experts™
on
I recently rebuilt my PC as it was getting clogged up with dross and did a clean install.  Thought I'd backed up everything but now when I open one of my Click Once VB.NET applications in Visual Studio 2010 I get this error when I try to run or compile the application:

"Unable to find manifest signing certificate in the certificate store."

I have tracked this down to the "Signing" part of the Project properties where ther was a tick on "Sign the ClickOnce manifests". I can run the program by unticking this but want to know what problems this might cause.  If the original certificates went west with my old PC is there any way I can get them back or regenerate new ones.

If I leave it with the "Sign the ClickOnce manifests" unticked and publish a new version will it still work for end users or is the certificate intrinsic to the way ClickOnce works?

Siv
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Top Expert 2014
Commented:
You can unsign and it would work or you can generate a new certificate. But the app would need reinstalling(uninstalling old one) in atleast the second case if not both.
Commented:
All you have to do is create a new certificate by pressing the Create Test Certificate... button or if you have backed up your old certificate, then just select the certificate from where you backed it up via the appropriate button, again on the signing tab of your project properties.
Siv

Author

Commented:
Where would the certificate have been stored?
In one of my other applications which uses click once there is a file called ProjectName_TemporaryKey.pfx and I can use this key to load back into the certificate store, but for some reason the project in question doesn't have one?

Had I known the ClickOnce stuff was using certificates I would have backed up my Certificate store, but I didn't as I didn't realise it was being used.  I have a full copy of Appdata\Roaming, would it be in there anywhere?

Siv

Commented:
Nothing to worry about.Like I suggested above, all you need to do is to create a test certificate and thats all.

PS. usualy, the certificate is stored within the project's folder. If you backed up the entire project folder, then you should be able to browse to the certificate in the root of the project.
Siv

Author

Commented:
@nepaluz
Will this continue to work for users who need to get updates when I publish the next release or will they have to uninstall the application and re-install it from my website?

Siv

Commented:
It should continue to work, no problems.
Siv

Author

Commented:
Both solutions worked though nepaluz gave me the confidence to actually try the Test Certificate method as I was concerned that remote users of my app would have to unintall and then re-install as a result of my actions.

Thanks gus, project is now back up and I will certainly make sure the pfx files are saved in all my projects in future before clean installing my machine.
Siv

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial