"Failed to access IIS metabase." with ASP.NET 2.0"

Posted by Sagarp under ASP.NET on 11/26/2009 | Views : 2710 | Status : [Member] | Replies : 3
this eroor

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.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HostingEnvironmentException: Failed to access IIS metabase.]
System.Web.Configuration.MetabaseServerConfig.MapPathCaching(String siteID, VirtualPath path) +688
System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath.MapPath(String siteID, VirtualPath vpath) +9
System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +173
System.Web.CachedPathData.GetConfigPathData(String configPath) +398
System.Web.CachedPathData.GetConfigPathData(String configPath) +263
System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +166
System.Web.Configuration.RuntimeConfig.GetLKGRuntimeConfig(VirtualPath path) +187


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/



Responses

Posted by: Vuyiswamb on: 11/26/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Your Error gave you a Solution

http://support.microsoft.com/kb/326902


Thank you for posting at Dotnetfunda
[Administrator]

Sagarp, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Abhijit Jana on: 11/26/2009 [Member] [MVP] Bronze

Up
0
Down
Does you IIS registred with ASP.NET Framework ? Please try to run aspnet_regiis -i from VS command prompt.

Cheers !
Abhijit

Sagarp, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Abhijit Jana on: 11/26/2009 [Member] [MVP] Bronze

Up
0
Down
Some times this error happened when you installed IIS after Visual studio. To make sure that :
Please check from : IIS > Virtual Dir > Properties > ASP.NET Version.
---------
Here the version should be the latest one, means if your web sites is developed using ASP.NET 2.0 then the version should be 2.0.X.X .

If your site is developed on ASP.NET 2.0, but you are not able to see the version as 2.0.X.X then you should have to register the IIS with ASP.NET Framework as I said earlier.

If you want to know more about IIS, please read this article :
http://www.codeproject.com/KB/aspnet/ExploringIIS.aspx

Let me know if you have any doubts regarding IIS.

Cheers !
Abhijit

Sagarp, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response