Visual Studio 2012 的注册表权限 [英] Registry permission for Visual Studio 2012

查看:47
本文介绍了Visual Studio 2012 的注册表权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在创建 Web 应用程序期间,我收到以下弹出消息:

During web application creating i got below popup message:

Visual Studio 没有权限从注册表中读取模板信息.这通常是由注册表权限问题引起的."

"Visual studio does not have permissions to read the template information from the registry. this is often caused by registry permission problem."

大家有什么解决办法吗?请帮我.我想看看 Visual Studio 的新功能.

Any one have any solution? Please help me. i wana to see Visual Studio new features.

谢谢

推荐答案

这可能是一个很晚的答案,但我遇到了同样的问题,我在 msdn 页面上找到了解决方案:这里是原始解决方案消息:

this might be quite late as an answer, but I excpierienced the same problem and I found the solution on a msdn page : here is the original solution message :

我在 Visual Studio 2010 和 Windows 7 中遇到了这个问题.我还没有找到这个问题的根源,但是,我发现很多 Visual Studio 用户都遇到了它.我尝试了迈克尔对这个问题的解决方案,它造成的损害比其他任何东西都多.它甚至让 Visual Studio 启动到Shell 模式"并告诉我注册无效.使用系统还原,我回滚了 subinacl 工具和 Michaels 脚本所做的更改(它可能不适用于 Windows 7,首先会导致错误).作为一个长期的 V​​isual Studio 用户和一个很好的故障排除者,我知道 subinacl 是解决问题的合适工具,但脚本对于我的特定设置不正确.我将脚本调整如下:(这是一个批处理脚本)

I came across this issue with Visual Studio 2010 and Windows 7. I did not find this problems source as of yet but, I have found many Visual Studio users encountering it. I tried Michael's solution to this problem and it did more damage then anything else. It even went as far as to make Visual studio to boot into "Shell mode" and tell me the registration was not valid. Using System Restore I rolled back the changes made by the subinacl tool and Michaels script (it probably was not meant for Windows 7, causing the errors in the first place) . being a long time visual studio user and a pretty good trouble shooter, I knew the subinacl was the proper tool to correct the problem, but the script was incorrect for my perticular setup. I adjusted the script as follows: (this is a batch script)

    cd /d "%programfiles% (x86)\Windows Resource Kits\Tools"
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio* /setowner=domain\user
    subinacl /subkeyreg HKEY_CLASSES_ROOT\VisualStudio* /grant=everyone=f         
    /grant=administrators=f /grant=system=f
    pause

我尝试在授权命令中包含setowner"命令(在同一行),但它会一直抛出错误.此脚本在 Windows 7 和 Visual Studio 2010 中修复了我的不允许请求的注册表访问".如果您想尝试此脚本:按照 Michael 的说明进行操作,但使用本文中提供的脚本并将域\用户"替换为正确的凭据.如果您将 Windows 资源工具包安装在不同的位置或未使用 64 位操作系统,您可能还需要更改它的路径.在使用此脚本之前,请备份您的注册表.

I tried to include the "setowner" command with the grant commands (on the same line) but it would throw errors all the time. This script fixed MY "Requested registry access is not allowed" with Windows 7 and Visual Studio 2010. if you want to try this script: Follow Michael's instructions, but use the script provided in this post and replace the "domain\user" with the proper credentials. You may also need to change the Path of Windows Resource Kits if you installed it in a diffrnet place or are not using a 64 bit OS. Before using this script please backup your registry.

希望对您有所帮助!

*原始网页是:http://social.msdn.microsoft.com/Forums/en-US/c273b0e1-7f46-4065-afaf-4edf285d2531/vista-wpfapplication-requested-registry-access-is-not-allowed

这篇关于Visual Studio 2012 的注册表权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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