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
Step 1: Close Visual Studio
Step 2: Go to Project Folder and find ".vs" folder Note: It may be hidden
Step 3: Delete ".vs" folder
Step 4: Open Project Again
first uncheck internet information service from turn windows features on or off.
then uninstall iis from your system and restart it. after restarting it install iis again from https://www.microsoft.com/en-us/download/confirmation.aspx?id=34679
and try to open again.
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:
aspnet_regiis.exe -i
-i
: Installs the version of ASP.NET that is associated with Aspnet_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.