Home All Groups Group Topic Archive Search About

Failed to access IIS metabase

Author
15 May 2009 11:25 AM
Andrew Chalk
I have installed my ASP.NET 2.0 web app. on a new server and when I attempt
to access the home page I get:

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) +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.GetApplicationPathData() +38
   System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath,
Boolean permitPathsOutsideApp) +8806383
   System.Web.Configuration.RuntimeConfig.GetLKGRuntimeConfig(VirtualPath
path) +117



I ran
aspnet_regiis -ga <WindowsUserAccount>

on the IUSR account but it did not change things. Could someone tell me what
I am doing wrong?

Many Thanks.

Author
19 May 2009 10:30 AM
David Wang
Show quote Hide quote
On May 15, 4:25 am, "Andrew Chalk" <ach***@magnacartasoftware.com>
wrote:
> I have installed my ASP.NET 2.0 web app. on a new server and when I attempt
> to access the home page I get:
>
> 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 seehttp://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) +637
>    System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.ICon­figMapPath2.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.GetApplicationPathData() +38
>    System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath,
> Boolean permitPathsOutsideApp) +8806383
>    System.Web.Configuration.RuntimeConfig.GetLKGRuntimeConfig(VirtualPath
> path) +117
>
> I ran
> aspnet_regiis -ga <WindowsUserAccount>
>
> on the IUSR account but it did not change things. Could someone tell me what
> I am doing wrong?
>
> Many Thanks.


Is this web server on a Domain Controller?

What is the Application Pool Identity used to run your web app?


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
Are all your drivers up to date? click for free checkup

Author
18 Jun 2009 1:33 AM
Andrew Chalk
Show quote Hide quote
"David Wang" <w3.4***@gmail.com> wrote in message
news:0da1ab94-0c91-4494-b5de-556c50b1c736@d7g2000prl.googlegroups.com...
On May 15, 4:25 am, "Andrew Chalk" <ach***@magnacartasoftware.com>
wrote:
> I have installed my ASP.NET 2.0 web app. on a new server and when I
> attempt
> to access the home page I get:
>
> 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 seehttp://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) +637
> System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.ICon­figMapPath2.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.GetApplicationPathData() +38
> System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath,
> Boolean permitPathsOutsideApp) +8806383
> System.Web.Configuration.RuntimeConfig.GetLKGRuntimeConfig(VirtualPath
> path) +117
>
> I ran
> aspnet_regiis -ga <WindowsUserAccount>
>
> on the IUSR account but it did not change things. Could someone tell me
> what
> I am doing wrong?
>
> Many Thanks.


>> Is this web server on a Domain Controller?

No.

>> What is the Application Pool Identity used to run your web app?

I don't understand the question. How do I determine this?

Thanks.

- A

//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

Bookmark and Share