I was trying to create a strong name for an assembly in Visual Studio from the project properties using the dialog:
After clicking OK I received the following error message: The operation could not be completed. Access is denied.
I then tried from the command prompt using sn.exe and received the same type of message: Failed to generate a strong name key pair -- Access is denied.
I found the following blog post Create Strong Name Key - Access Denied Error, but it applies to Windows XP. I searched around for a RSA\MachineKeys folder and found three different locations but it seems the folder C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys is the magic place.
I gave my user the following permissions on the MachineKeys folder and then I was able to sign my assembly :-D
When I changed the permissions on the folder it complained I could not change permissions on the files in the folder, so I cancelled out of the application of the file permissions. It looks like I’d have to take ownership of the existing files in order to change their permissions which I decided not to do at this point.
I hope this helps :-)
Next entry: Numbered Google search results in FireFox
Previous Entry: A way to determine if an ASP.NET MVC view exists
Latest entries:
Create absolute URLs using ASP.NET MVC
Comments
this was the answer for me, thanks. was new to using windows 7 64 bit and this file was a bit difficult to find, given all the advice to look in C:\Users or C:\Documents and Settings, etc. appreciate the answer.
My Links
Tags
Follow me
About
Powered by FoxBlog
Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2011, Nathan Fox
Thanks, this helped me to
Pavel Shkleinik - August 25, 2011