SN.EXE失败并拒绝访问错误信息错误信息、SN、EXE

由网友(伊人一笑为谁倾〃)分享简介:我得到一个访问被拒绝错误消息当我使用强名称工具来创建一个新的密钥来签署.NET程序集。这只是正常的Windows XP计算机上,但它并没有对我的Vista的机器工作。PS C:\用户\布莱恩\开发\项目\ BELib \ BELib> SN -k keypair.snk微软(R).NET框架强名称实用工具版本3....

我得到一个访问被拒绝错误消息当我使用强名称工具来创建一个新的密钥来签署.NET程序集。这只是正常的Windows XP计算机上,但它并没有对我的Vista的机器工作。

  PS C:用户布莱恩开发项目 BELib  BELib> SN -k keypair.snk

微软(R).NET框架强名称实用工具版本3.5.21022.8
版权所有(c)Microsoft公司。版权所有。

无法生成强名称密钥对 - 访问被拒绝。
 

是什么原因导致这个问题,我怎么能解决这个问题?

  

你运行你的PowerShell或   命令提示符作为一个管理员?一世   发现这是放在首位   看,直到你习惯的用户访问   控制或通过转动用户访问   控制了。

是的,我已经尝试运行PS和定期的命令提示符以管理员身份。相同的错误消息出现。

解决方案   

是的,我已经尝试运行PS和   常规命令提示符   管理员。相同的错误消息   出现。

另一种可能的解决方案可能是你需要给您的用户帐户访问位于C密钥容器: Documents和Settings 所有用户应用数据微软加密 RSA MachineKeys的

I get an Access is Denied error message when I use the strong name tool to create a new key to sign a .NET assembly. This works just fine on a Windows XP machine but it does not work on my Vista machine.

PS C:usersbrianDevProjectsBELibBELib> sn -k keypair.snk

Microsoft (R) .NET Framework Strong Name Utility  Version 3.5.21022.8
Copyright (c) Microsoft Corporation.  All rights reserved.

Failed to generate a strong name key pair -- Access is denied.
这个错误如何解决啊

What causes this problem and how can I fix it?

Are you running your PowerShell or Command Prompt as an Administrator? I found this to be the first place to look until you get used to User Access Control or by turning User Access Control off.

Yes I have tried running PS and the regular command prompt as administrator. The same error message comes up.

解决方案

Yes I have tried running PS and the regular command prompt as administrator. The same error message comes up.

Another possible solution could be that you need to give your user account access to the key container located at C:Documents and SettingsAll UsersApplication DataMicrosoftCryptoRSAMachineKeys

阅读全文

相关推荐

最新文章