I'm trying to sign an assembly in Visual Studio 2010 with our PFX file, after I enter the password for the private key I get "An attempt was made to reference a token that does not exist"
views:
190answers:
1
Q:
Visual Studio 2010 Assembly Signing: An attempt was made to reference a token that does not exist
+1
A:
I have the same problem. Just use signtool
from the Visual Studio command prompt instead. Sometimes signtool
will claim your password is invalid, but usually after a couple of tries it starts working for me.
signtool.exe /f YOURCERT.pfx /p YOURPASSWORD YOURTARGET.exe
Matthew Ferreira
2010-05-04 14:48:00
Perfect worked as a post build step, just had to change tosigntool.exe sign /f YOURCERT.pfx /p YOURPASSWORD YOURTARGET.exe
StressChicken
2010-05-05 16:16:33