Failed to access IIS metabase

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

%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i

This will reinstall ASP.NET for you and you should be fine!

POSTED BY Divergence Hosting on Mar 8 under IIS

Leave a Comment

If you would like to make a comment, please fill out the form below.

Name (required)

Email (required)

Website

Comments

1 Comment so far
  1. alophobanVamn March 7, 2010 12:44 pm

    Thanks for writing, I very much liked your newest post. I think you should post more frequently, you evidently have natural ability for blogging!

Copyright Divergence Hosting Technical Blog | Powered by WordPress | Using the GreenTech Theme

SEO Powered by Platinum SEO from Techblissonline