Build error when publishing clickonce after build machine name changes
16 Nov 2010I am testing out building VS2010 projects on a new build VM which is just a copy of the real build vm, the equivelant of “changed the name of my build machine.” The Publish Clickonce step failed with
error MSB3482: An error occurred while signing: Keyset does not exist …
Found this helpful blog post that described how to resolve this, by removing the signing cert from the current user’s Certificates->Personal->Certificates:
-
Open Microsoft Management Console (MMC) by click on Start –> Run
-
Type “MMC.exe” in the text box window (without quotes).
-
Click OK. A MMC window will appear.
-
Click Console in the new MMC you created, and then click Add/Remove Snap-in.
-
In the new window, click Add.
-
Highlight the Certificates snap-in, and then click Add.
-
Choose the “My User Account” option and click Next.
-
Click Close, and then click OK.
-
Open the Certificates (Current User) snap-in and navigate to Personal, and then Certificates. You will see the list of ertificates installed. If you can not find the one that you’re looking for then it means it does not exist.
-
In the certificate list right click on the certificate you used to sign the manifest and select Delete
-
Try to re-publish your .Net project.