Search code examples
wpfvisual-studio-2012clickonceassembly-signing

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.


Solution

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