Citations de bush Always provide an Url to asp:ImageButton controls
Jan 17

 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.

2 Responses to “Cannot create a key.snk file with sn.exe”

  1. prateek singh kiit Says:

    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

  2. Mongkol Says:

    Just make sure your path folder that you want to put your key file is full access.

Leave a Reply