访问被拒绝在Windows上运行SN.EXE 7 [英] Access denied running sn.exe on Windows 7

查看:255
本文介绍了访问被拒绝在Windows上运行SN.EXE 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图建立/ 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.

<一个href="http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/e84e015b-41c8-4170-8686-2474832fcd28" rel="nofollow">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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆