Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error MSB3482: An error occurred while signing: Failed to sign

I have .pfx certificate which is self signed. I've signed the ClickOnce manifest of my VSTO (Excel Add-In project type in Visual Studio) project. Recently we have migrated the application from .Net 3.5 to 4.5 and Office 2007 to 2010 since then project (that used to work) and now it gives me an error:

An error occurred while signing: Unknown error "-2147012894"
SignTool Error: An unexpected internal error has occurred
The certificate is perfectly valid and not expired

Anyone had this kind of error before? Any suggestions?

like image 471
user1844634 Avatar asked Jul 18 '16 19:07

user1844634


1 Answers

Try creating a new certificate.

Look at the "Signing" section under the project's properties.

In my case, my MSB3482 error occurred because my certificate had indeed expired. I clicked the button called "Create Test Certificate" and I was able to build and run again. (At least for another year)

like image 123
Mikhael Loo Avatar answered Nov 14 '22 08:11

Mikhael Loo