Failed To Access IIS metabase.

Above error can occur if you have installed Microsoft Dot Net Framework before installation of IIS server on your local machine like windows XP. There are couple of work around available on the internet to solve this problem but they are just work around not the permanent solution. One of them is to add ASPNET user in your local administrators group and restart the IIS server. As soon as you will restart your IIS server they Microsoft Dot Net enabled applications will start working under IIS server but this will put your system under a big security risk.

Error with full description is given as under:

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.

Microsoft has provided a work around of this error to set the permission using a VB script along with reinstallation of Microsoft IIS and Microsoft Dot Net Framework in a correct order. Or you can issue a command to re-register the dot net framework with IIS Server. Command is given as under:

ASPNET_regiis –i

but this will not help you

Solution:

Solution of this problem is very easy. You have to assign read rights to ASPNET user on IIS Server. Please issue the under given command:

ASPNET_regiis –ga ASPNET

The above command will assign the appropriate rights to ASPNET user on your machine for IIS Server.

If you found this post useful please share your valuable comments and share with your friends.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.