Failing to publish a Windows Forms project
Asked Answered
H

4

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?

Hijoung answered 19/8, 2011 at 17:5 Comment(3)
From the error message it looks like that the "signer's certificate is not valid for signing.", make sure certificate is valid.Resinous
How will I make so??!? it creates a temp certificate to my project, but I dont know what it doesHijoung
First search hit: social.msdn.microsoft.com/forums/en-US/vbgeneral/thread/…Huskamp
I
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.

Imes answered 12/10, 2011 at 13:38 Comment(1)
This worked for me too - but had to restart Visual Studio first though.Zinazinah
T
6

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

Please see screenshot

Tletski answered 30/10, 2019 at 14:23 Comment(1)
I don't think this is a useful suggestion to not sign manifest...Euthanasia
S
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.

Spa answered 27/7, 2020 at 1:7 Comment(0)
E
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

Euthanasia answered 3/5, 2020 at 15:35 Comment(1)
just had this same issue - changed timestamp server URL to the previous one - and problem with signing was goneEuthanasia

© 2022 - 2024 — McMap. All rights reserved.