Failed to access IIS metabase ASP.NET 1.1 2.0 3.5 Web Server Error

After installing IIS server when you browsing web site or an aspx page in IIS server then you may getting or encounter an error named “Failed to access IIS metabase“.

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

you may have installed IIS Server after installing the .NET framework.

Error Screen shot:

Metabase Error


This Error Caused Because You does not Register ASP.Net with IIS. Please Follow the below Steps to Regiser ASP.Net With IIS:

Step 1: Go to Start then Run
Step 2: Write cmd and then press enter
Step 3: Go to your windows directory. Here i am considering c Drive
Step 4: Type C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -i
Step 6: Change the path based on your local path.
Step 7: Wait a few moment until a message comes Successfully Register.

metabase solution

Note: If you multiple .net version like 1.1, 2.0 or 3.5 then modify the above command accordingly & run.

Hope now your problem has been resolved.

Posted in .Net,

Leave a Reply

Your email address will not be published. Required fields are marked *