After recently starting up a fresh install of Windows and loading all my development tools, I received this error
Failed to access IIS metabase.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.
The process account used to run ASP.NET must have read access to the IIS metabase (e.g. IIS://servername/W3SVC). For information on modifying metabase permissions, please see http://support.microsoft.com/?kbid=267904.
After seeing this issue, I realized that I must have installed IIS after ASP.NET.Â ASP.NET framework was installed thanks to my Windows auto updating which I did before installing IIS.
The fix is simple thankfully, just go to Start Menu | Run
Then copy and paste the below
This will reinstall ASP.NET for you and you should be fine!