Dmitry Makovetskiyd
Dmitry Makovetskiyd

Reputation: 7053

Failing to publish a Windows Forms project

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?

Upvotes: 36

Views: 31557

Answers (4)

Shamal Sabah
Shamal Sabah

Reputation: 239

In my case, I just did:

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

Done.

Upvotes: 4

Prokurors
Prokurors

Reputation: 2548

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

Upvotes: 0

AliSafder
AliSafder

Reputation: 569

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

Please see screenshot

Upvotes: 6

Darren
Darren

Reputation: 4488

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.

Upvotes: 60

Related Questions