我试图建立/ 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
HKLMSOFTWAREWow6432NodeMicrosoftStrongName
ACCESS DENIED
Desired Access: Maximum Allowed
为当前用户将写访问下列主要解决了这个问题。
Giving write access for the current user to the following key fixed this problem
HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoft
请注意,给予写入访问根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?)
相关推荐
最新文章