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

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

问题描述

这是ASP.NET Web项目的负载,最多的解决方案,但我得到这个错误

An ASP.NET web project loads with up the solution, but I get this error

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

The Web Application Project 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.

这又如何解决呢?

推荐答案

这可能无关注册ASP / IIS。原因是什么错误消息说:Visual Studio中的devenv.exe是不足够的权限来访问IIS进程中运行,它需要做,如果您的解决方案包含一个Web项目的Web设置说使用IIS而不是VS开发服务器。

This may have nothing to do with registering ASP/IIS. The reason is exactly what the error message says: Visual Studio devenv.exe is not running with sufficient privileges to access the IIS process, and it needs to do this if your solution contains a web project whose Web settings say to use IIS rather than the VS dev server.

有两种解决问题的方法:

There are two solutions to your problem:


  1. 运行VS作为管理员,并重新打开解决方案/项目。

  2. 编辑Web应用程序的项目文件,用文本编辑器并更改该行
    从真到假:

  1. Run VS as an Administrator and reopen the solution/project.
  2. Edit the web application's project file with a text editor and change this line from True to False:

 <UseIIS>True</UseIIS>


这将使用IIS和要求更高的特权之停止。

That will stop it using IIS and demanding higher privileges.

原因VS需要管理员权限,我相信,因为它会尝试和按需创建IIS网站为你,如果它不存在。

The reason VS demands Admin privileges is, I believe, because it will try and create the IIS web site for you on demand if it doesn't exist.

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

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