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

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

问题描述

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

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

Web应用程序项目美孚配置为使用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. Things I have tried:

  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?

推荐答案

谢谢大家的回答。由于这个被关闭了很长时间,我不能提供太多的反馈,但我确实最终解决我的问题。我尝试了许多这些其他的解决方案,他们并没有解决我的问题,但我敢肯定,他们帮助的时候根本原因是不同的。

Thank you to everyone that answered. Since this was closed for a long time I couldn't provide much feedback, but I did eventually fix my problem. I tried many of these other solutions and they didn't fix my issue, but I'm sure they help when the root cause is different.

我的解决方案

我通过关闭IIS和.NET Framework功能在Windows 7,然后把他们重新解决了这个问题。看起来这重新安装是固定我的问题。我仍然不知道是什么原因造成的问题,但在我的球队至少一个其他开发商有同样的问题。

I solved this problem by turning off the IIS and .Net Framework features within Windows 7 and then turning them back on. It seems like this re-installation is what fixed my issue. I still don't know what caused the problem, but at least one other developer on my team had the same issue.

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

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