问题描述
我试图建立/ Windows 7的计算机上的程序集签名,我得到以下异常:
I'm trying to build / sign an assembly on a Windows 7 machine and I get the following exception:
x:\> SN -q -Vr "x:\someassembly.dll"
Failed to open registry key -- Access is denied.
我发现,似乎是同样的问题,下面的线,并提到他固定它通过在注册表项更改权限,但它没有提到它的注册表项。
I've found the following thread that appears to be the same problem, and it mentions that he fixed it by changing permissions on a registry key, however it doesnt mention which registry key.
http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/e84e015b-41c8-4170-8686-2474832fcd28
有没有人遇到过这个?
推荐答案
好吧,我发现的问题通过的,其中列出了以下内容:
Ok, I identified the key in question using Process Mon, which lists the following:
sn.exe
RegCreateKey
HKLM\SOFTWARE\Wow6432Node\Microsoft\StrongName
ACCESS DENIED
Desired Access: Maximum Allowed
为当前用户将写访问下列主要解决了这个问题。
Giving write access for the current user to the following key fixed this problem
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft
请注意,给予写入访问根HKLM节点的 didnt 解决我的问题(在注册表中的文件夹的权限,显然不是递归?)
Note that giving write access to the root HKLM node didnt fix my problem (apparently permissions of folders in the registry aren't recursive?)
这篇关于访问被拒绝在Windows上运行SN.EXE 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!