36

I am trying to click on the project and publish it. But what I get is this:

Error 94  An error occurred while signing: Failed to sign

bin\Debug\app.publish\setup.exe. SignTool Error: The signer's certificate is not valid for signing. SignTool Error: An error occurred while attempting to sign: bin\Debug\app.publish\setup.exe CHATT3R

What does it mean?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Dmitry Makovetskiyd
  • 6,942
  • 32
  • 100
  • 160

4 Answers4

60

I had this problem. It turns out the certificate had expired (useful error message - thanks Microsoft)

If you go to the Signing page in the project properties you can see the expiry date, and create a new test certificate if required.

Darren
  • 4,408
  • 4
  • 39
  • 57
6

Go to Signing page in the project properties and Uncheck Sign The ClickOnce manifests.

Please see screenshot

Unihedron
  • 10,902
  • 13
  • 62
  • 72
AliSafder
  • 549
  • 5
  • 6
4

In my case, I just did:

  • Right-click on your project.
  • Choose Settings.
  • Go to Signing page in.
  • Untick "Sign the ClickOnce manifests".

Done.

Shamal Sabah
  • 229
  • 2
  • 7
0

I had also problem problem with signing with an error error MSB3482: An error occurred while signing: Failed to sign bin\Debug\app.publish\....exe. SignTool Error: An unexpected internal error has occurred the interesting thing was that my certificate was not expired.

In my case problem was with Timestamp server URL - don't know why, but the previously provided URL by some reason was not working anymore (maybe some temporary unavailability?)

Switched it to different Timestamp server URL and signing was working again enter image description here

The Timestamp server URL which was not working http://tsa.starfieldtech.com

The Timestamp server URL I replaced it with was http://timestamp.globalsign.com/scripts/timstamp.dll

Prokurors
  • 2,458
  • 3
  • 40
  • 65
  • just had this same issue - changed timestamp server URL to the previous one - and problem with signing was gone – Prokurors Apr 10 '21 at 10:17