Clickonce – Unable to Sign Application

I get this error when I try and publish the Click-Once project in .Net:

Cannot publish because a project failed to build.
SignTool reported an error ‘Failed to sign bin\Debug

Here is the Fix:

  1. Go to the properties of the project.
  2. Go to “Signing”
  3. “Create Test Certificate”
  4. Dont bother with a password
  5. Save
  6. Re-Publish

-Do this to all the projects in the solution.

This should fix the error and get you ClickOnce Publishing again.