CLICK ONCE ERROR: “An error occurred while signing: Failed to sign binDebugapp.publish\setup.exe. SignTool Error”
ISSUE:
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
RESOLUTION:
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.
https://msdn.microsoft.com/en-us/library/ff369721.aspx
https://msdn.microsoft.com/en-us/library/ms996418.aspx
Content By : Pooja Kalita
Comments
Anonymous
August 27, 2012
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! www.ilearnttoday.com/clickoncecannotpublishprojectfailedbuildAnonymous
October 24, 2015
I resolved this by downloading Sdksetup file , this is for windows8, if you use win7 check for you operating system. msdn.microsoft.com/.../aa904949