CLICK ONCE ERROR: “An error occurred while signing: Failed to sign binDebugapp.publish\setup.exe. SignTool Error”



Unable to publish a ClickOnce Application


Error 1 Cannot publish because a project failed to build.

Error 2 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


The test certificate used to sign the manifest files has expired.

Hence we created a new test certificate and published the application using that certificate successfully.

Please refer the below links for more information on creating a test certificate.

Content By : Pooja Kalita

Comments (2)

  1. Andrew says:

    Thanks a lot for the solution.

    My problem didn't involve certificates so the solution in the below article worked for me.but it looks a lousy fix. Can you please tell if this is a wrong method? Thanks for your time in advance!

  2. Dirk Guerrier says:

    I resolved this by downloading Sdksetup file , this is for windows8, if you use win7 check for you operating system.…/aa904949

Skip to main content