IIS metabase problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ephi
    New Member
    • Feb 2012
    • 11

    IIS metabase problem

    Hi,

    I activated IIS on my XP machine and then installed an Intranet app (.NET).
    When I tried to access the portal, I got an error with the message "Failed to access IIS metabase".
    The exact message is below. Any help would be appreciated.

    Server Error in '/portal' 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.Host ing.HostingEnvi ronmentExceptio n: 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.microso ft.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:


    [HostingEnvironm entException: Failed to access IIS metabase.]
    System.Web.Conf iguration.Metab aseServerConfig .MapPathCaching (String siteID, VirtualPath path) +637
    System.Web.Conf iguration.Metab aseServerConfig .System.Web.Con figuration.ICon figMapPath2.Map Path(String siteID, VirtualPath vpath) +9
    System.Web.Host ing.HostingEnvi ronment.MapPath Actual(VirtualP ath virtualPath, Boolean permitNull) +174
    System.Web.Host ing.HostingEnvi ronment.MapPath Internal(Virtua lPath virtualPath, Boolean permitNull) +51
    System.Web.Cach edPathData.GetC onfigPathData(S tring configPath) +341
    System.Web.Cach edPathData.GetC onfigPathData(S tring configPath) +234
    System.Web.Cach edPathData.GetA pplicationPathD ata() +38
    System.Web.Cach edPathData.GetV irtualPathData( VirtualPath virtualPath, Boolean permitPathsOuts ideApp) +8823599
    System.Web.Conf iguration.Runti meConfig.GetLKG RuntimeConfig(V irtualPath path) +117
  • zmbd
    Recognized Expert Moderator Expert
    • Mar 2012
    • 5501

    #2
    Go to the link provided in the error message: http://support.microsoft.com/?kbid=267904 carefully follow the instructions there in order to allow the ASP.Net to access the IIS server.
    You may have to follow the advice given in post #2 of the following thread: The process account used to run ASP.NET must have read access to the IIS metabase
    (kenobewan):
    This is a common problem when IIS is installed after the framework. Usually fixed by running
    Code:
    aspnet_regiis -i. HTH
    .

    Comment

    Working...