错误 - 无法访问 IIS 元数据库 [英] Error - Unable to access the IIS metabase

查看:32
本文介绍了错误 - 无法访问 IIS 元数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装 Visual Studio 2012 并打开我的解决方案后,我收到了以下形式的一系列错误:

After installing Visual Studio 2012 and opening my solution I get a series of errors in this form:

Web 应用程序项目 Foo 配置为使用 IIS.
无法访问 IIS 元数据库.您没有足够的权限在您的机器上访问 IIS 网站.

The Web Application Project Foo is configured to use IIS.
Unable to access the IIS Metabase. You do not have sufficient privilege to access IIS web sites on your machine.

我为我们的每个 Web 应用程序都得到了这个.

I get this for each of our web applications.

我尝试过的事情:

  1. 以管理员身份运行 Visual Studio
  2. 运行aspnet_regiis.exe -ga MyUserName
  3. 运行aspnet_regiis.exe -i

这些似乎是解决这个问题的常见解决方案,但我没有成功.

These seem to be common solutions for this problem but I have not had any success with them.

还有什么我可以尝试做的吗?

Is there anything else I can try to do?

推荐答案

Windows 8 Pro 上:

%systemroot%inetsrvconfig

Windows 7 和 8.1 和 10

%systemroot%System32inetsrvconfig 

(其中 %systemroot% 通常是 C:Windows)

在 Windows 资源管理器中导航到上面的适当位置.您将被阻止访问并显示一个弹出窗口:

Navigate to the appropriate location above in Windows Explorer. You will be blocked access with a popup which says:

您无权访问此文件夹 - 单击继续以永久访问此文件夹"

"You don't have access to this folder - Click continue to permanently get access to this folder"

点击此文件夹的继续",并在下面显示导出文件夹.我将快捷方式改回以我身份运行"(域成员和本地管理员),并且能够打开和部署解决方案.

Click 'continue' for this folder, and with the Export folder underneath. I changed the shortcut back to "Run as me" (a member of the domain and local administrators ) and was able to open and deploy the solution.

这篇关于错误 - 无法访问 IIS 元数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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