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 metabase. You do not have sufficient privilege to access IIS web sites on your machine.
How can this be solved?
Have you registered the .NET framework with IIS? You need to run the
aspnet_regiis.exe
utility found at%WindowsDir%\Microsoft.NET\Framework\vx.y.zzzz\.
Run it as administrator as follows:-i
: Installs the version of ASP.NET that is associated withAspnet_regiis.exe
and updates the script maps at the IIS metabase root and below. Only the script maps for applications that use an earlier version of ASP.NET are updated. Applications that use a later version are not affected.Find out more about the utitlity here.
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.
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).