您的位置:首页 > 其它

解决visual studio 2008在windows 7 系统中调试权限的问题

2011-06-23 16:41 447 查看
visual studio 2008在windows 7 中调试程序可能会出现:

读取注册表的时候提示没有权限,这样不能调试程序。或者其他需要管理员权限的代码。

解决办法:

在运行的visual studio 2008解决方案中的启动程序添加“Application Manifest File”,名字为:app.manifest

然后

<requestedExecutionLevel level="asInvoker" uiAccess="false" />

  

替换成

<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />

重新编译解决方案。按照提示重新启动visual studio 2008后出现提示对话框

“This task requires the application to have elevated premissions.”

点击 "restart ...."那个按钮重新启动即可成功调试程序。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐