Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 16, 2012 07:48 PM by Sparkers
Apr 16, 2012 02:01 PM|LINK
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
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.
[HostingEnvironmentException: Failed to access IIS metabase.]
System.Web.Configuration.MetabaseServerConfig.MapPathCaching(String siteID, VirtualPath path) +637
System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath2.MapPath(String siteID, VirtualPath vpath) +9
System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +174
System.Web.Hosting.HostingEnvironment.MapPathInternal(VirtualPath virtualPath, Boolean permitNull) +51
System.Web.CachedPathData.GetConfigPathData(String configPath) +341
System.Web.CachedPathData.GetConfigPathData(String configPath) +234
System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +8806399
System.Web.Configuration.RuntimeConfig.GetLKGRuntimeConfig(VirtualPath path) +117
Version Information: Microsoft .NET Framework Version:2.0.50727.3607; ASP.NET Version:2.0.50727.3614
Apr 16, 2012 02:25 PM|LINK
Please go through the article from the following link
Apr 16, 2012 03:13 PM|LINK
The link has not helped i have tried already !!!!
Apr 16, 2012 03:20 PM|LINK
Try granting the ASPNET user permissions. Another couple of tricks that can help identify this is use Filemon, it'll help track down which folders / files are being denied. Also look in the security event log, this would list failed access issues.
You would need to enable failure auditing of 'object access'. You would use the Local Security Policy editor to enable this
Apr 16, 2012 04:37 PM|LINK
I not sure how to use it !!! could you help me ???
Apr 16, 2012 07:06 PM|LINK
I can help you.. do you want me o write all steps or..?
Apr 16, 2012 07:45 PM|LINK
Thanks for your help Sparkers. I have managed to fix the issue
It was permissions issue on the ASpnet system account provided Access admin privelages and the issue was sorted.
Apr 16, 2012 07:48 PM|LINK
Cool.. That's good.. As mentioned in the previous post you had to gain access to the and grant access.