Jan 17
Cannot create a key.snk file with sn.exe
Uncategorized Add comments
I’m exploring creation of Package in Visual Studio 2005 and I was not able to build a dummy project. After different tries, the problem was due to the empty key.snk file. I then tried to create on using the command line:
C:\>sn -k key.sn
Unfortunately I get the following error:
Microsoft (R) .NET Framework Strong Name Utility Version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
Failed to generate a strong name key pair — Access is denied.
Finaly ‘google’ helped me : solution is there. Thanks to Aaron for this useful tip. More over, I confirm that now if I create a new dummy project …visual no more create an empty key.snk file.
June 26th, 2010 at 3:42 am
come in directory.
c:\program files\micosoft visual studio 9.0\vc>
under this directory all the running compatible file prasent
c:\program files\micosoft visual stdio 9.0\vc>sn -k
file will be created in .snk extenssion
July 2nd, 2010 at 12:15 pm
Just make sure your path folder that you want to put your key file is full access.