Unable to access the IIS metabase

后端 未结 9 1471
独厮守ぢ
独厮守ぢ 2021-02-19 11:50

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

The Web Application Project is configured to use IIS. Unable to access the IIS met

相关标签:
9条回答
  • 2021-02-19 12:07

    Just try to access Visual studio as Admin right click and choose run as administrator. may fixes this problem. and take a look at this link for instructions on creating a shortcut.

    0 讨论(0)
  • 2021-02-19 12:10

    I ran into this problem when I had copied a project to a new project. I opened the project file (.csproj) and removed the value from the IISUrl element:

    from: <IISUrl>http://localhost:21222</IISUrl>

    to: <IISUrl></IISUrl>

    0 讨论(0)
  • 2021-02-19 12:12

    Just register your Web-project in your local IIS. All the settings you will find in *.csproj file. That works for me.

    0 讨论(0)
  • 2021-02-19 12:13

    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. 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>
      

    That will stop it using IIS and demanding higher privileges.

    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.

    0 讨论(0)
  • 2021-02-19 12:19

    This error also occurs if you modified your Machine.config and added some "invalid lines": For example, I added some appSettings, to the configuration section (which IIS didn't like).

    0 讨论(0)
  • 2021-02-19 12:21

    An answer that worked for me can be found here:

    https://stackoverflow.com/a/17460774/3005965

    Basically, go to %systemroot%/inetsrv/config. When prompt appears saying you need admin privileges, click Continue.

    This should clear up your issue.

    0 讨论(0)
提交回复
热议问题