Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An error occurred while signing

I maintain a large WPF application which I inherited from another developer. I use ClickOnce to publish it. Suddenly, today I got an error message: Error 2 Cannot publish because a project failed to build. 1 1
Error 3 An error occurred while signing: Failed to sign bin\Debug\app.publish\setup.exe. SignTool Error: No certificates were found that met all the given criteria.

I do have a file called SomeName.snk, which is referred in project settings, Signing tab. I have no idea what happened today that caused the problem. I use VS 2012.

like image 435
David Shochet Avatar asked Dec 28 '12 14:12

David Shochet


4 Answers

Go to main project properties > Signing > If the expiration date is over > click on Create Test Certificate, password is not mandatory, and you're done.

like image 108
Antoine Meltzheim Avatar answered Oct 15 '22 08:10

Antoine Meltzheim


I'd check whether the certificate expired. Most (all?) certs have an expiration date.

like image 42
Judah Gabriel Himango Avatar answered Oct 15 '22 09:10

Judah Gabriel Himango


I got this problem installing visual c++ on top of a VS2017 .net install. I solved it by unchecking Properties -> Security -> Enable ClickOnce security settings.

It then created an app.manifest file. After that the error went away. Interestingly enough, I checked it again to see what would happen and the problem did not come back.

like image 6
SilentNot Avatar answered Oct 15 '22 10:10

SilentNot


Did you check for the certificate?

View or manage your certificates

You can use the MMC Snap In or Internet Explorer.

like image 5
paparazzo Avatar answered Oct 15 '22 10:10

paparazzo