« Previous Next »

Thread: how to deal with the error"failed to access IIS metabase"

Last post 06-04-2007 2:53 AM by Zhao Ji Ma - MSFT. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 06-02-2007, 5:36 AM

    • blik
    • Not Ranked
    • Joined on 05-28-2007, 5:05 AM
    • Posts 4

    how to deal with the error"failed to access IIS metabase"

    I run a web application named smallbusiness_cs on my IIS with the verion 5.1 and encountered the error page reporting that

    "

    Server Error in '/smallbusiness_cs' Application.

    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.210 "

    I have repaired the Framework2.0 and run aspnet_regiis -i and aspnet_regiis -ga .But it does not work.could you give me some instruction? 

  • 06-03-2007, 11:16 PM In reply to

    Re: how to deal with the error"failed to access IIS metabase"

    Why starts a new thread ?
    http://forums.iis.net/p/1115525/1733837.aspx

    Many able to fix the error by running the suggested command, not sure why it didn't works for you.
    now, did you run it in both 1.1. and 2.0 framework folders?

    how about retry the steps here:

    We followed below steps to resolve the issue -

    1. Unregistered all the versions of ASP.NET with command "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis –ua".

    2. Deleted the ASPNET account from "Local Users and Group – Users".

    3. Then registered ASP.NET 2.0 with IIS using "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis –i".

    4. Gave permissions to the ASPNET account using "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis –ga machinename\ASPNET".

    5. Reset the IIS and that resolved the issue for ASP.NET 2.0.

    6. We registered ASP.NET 1.1 with IIS as well using command "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis –i".

    7. Reset the IIS.

    Cheers,
    Bernard Cheah
  • 06-04-2007, 2:53 AM In reply to

    Re: how to deal with the error"failed to access IIS metabase"

    Hi, 

    Since you are using Windows XP 

    Please try this :

    aspnet_regiis -ga Users

    Zhao Ji Ma
    Sincerely,
    Microsoft Online Community Support

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
Page 1 of 1 (3 items)
Microsoft Communities