« Previous Next »

Thread: Failed to access IIS metabase, when trying to browse to .NET 2.0 Website

Last post 10-11-2009 1:04 AM by basheer.a. 20 replies.

Average Rating Rate It (5)

RSS

Page 1 of 2 (21 items) 1 2 Next >

Sort Posts:

  • 03-02-2008, 11:58 AM

    Failed to access IIS metabase, when trying to browse to .NET 2.0 Website

    Okay I hope someone can help as I may have to kill a amall mammal out of frustration otherwise... the neighbours cat may be my first victim!

    I'm trying to access the CruiseControl.NET website on my machine (running XP SP2, IIS 5.1, with .NET 1.1 and 2.0) but I keep getting the following error:

    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.

     I've googled and attempted the various given solutions, i.e. re-install .NET 2.0, register asp.net with aspnet_regiis tool, made sure the website is set to the right Framework... nada!

    Browsing to a .html page in the site works fine, browsing to a .NET 1.1 site works fine... what's the deal with .NET 2.0 sites?

    Any help would be massive!

  • 03-02-2008, 1:49 PM In reply to

    Re: Failed to access IIS metabase, when trying to browse to .NET 2.0 Website

    pyrokenesis:
    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

    Did this work?

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 03-02-2008, 4:51 PM In reply to

    Re: Failed to access IIS metabase, when trying to browse to .NET 2.0 Website

    No the article did not help. It said for .NET 2.0 use the tool aspnet_regiis with the options /ga <IUSR_MACHINE_NAME>, but that didnt work.

  • 03-03-2008, 12:03 AM In reply to

    Re: Failed to access IIS metabase, when trying to browse to .NET 2.0 Website

    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.

    Filemon (the swiss army knife of admins), not to use on the neighbor's cat. :)

    http://technet.microsoft.com/en-us/sysinternals/bb896642.aspx

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 03-03-2008, 8:54 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,216
    • IIS MVPs

    Re: Failed to access IIS metabase, when trying to browse to .NET 2.0 Website

    Yes, most likely the ASPNET account does not have access to your content files and folders.

  • 03-03-2008, 9:58 AM In reply to

    Re: Failed to access IIS metabase, when trying to browse to .NET 2.0 Website

    Thanks for the responses guys. I'll try your suggestion when I get home Steve; the cat may yet retain it's nine lives.

  • 10-28-2008, 11:06 PM In reply to

    Re: Failed to access IIS metabase, when trying to browse to .NET 2.0 Website

    Hello There,

     

    Your Problem Shold be Should By register ASP.net But it's Unfortunatly it not Solved.So First Check that Your Server Is Running or Not. Second Uninstall your IIS and Again Install it Sometimes This happen First You need to install VS then Install IIS and Then register.

    Hope your Problem Solved.

     

    http://dotnet-magic.blogspot.com/2008/10/failed-to-access-iis-metabase.html 

     

    http://dotnet-magic.blogspot.com/ 

  • 02-10-2009, 5:42 AM In reply to

    • ayyappasb
    • Not Ranked
    • Joined on 02-10-2009, 10:37 AM
    • Posts 1

    Re: Failed to access IIS metabase, when trying to browse to .NET 2.0 Website

    HI,

     

      Please reset your IIS and .Net register setings so that it will work. Please follow the below common Lines

     C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -i

    Try This this may Help you

    Regards,

    Ayyalappa S B

    System Administrator

    Genisys Softwares & BPO

    +919886816811

  • 02-22-2009, 6:12 PM In reply to

    • joezep
    • Not Ranked
    • Joined on 02-20-2009, 5:30 PM
    • Posts 1

    Re: Failed to access IIS metabase, when trying to browse to .NET 2.0 Website

    I was having the exact same problem and spent hours trying to solve it.

    After I ran "aspnet_regiis" from the correct directory everything started working great.

     Much Thanks,

    Joe

  • 04-23-2009, 12:45 AM In reply to

    • KKhushboo
    • Not Ranked
    • Joined on 04-22-2009, 12:01 PM
    • Posts 3

    Re: Failed to access IIS metabase, when trying to browse to .NET 2.0 Website

     Possible Cause:-

    When you install IIs after .Net 2.0 Framework,the right of asp.net user has not been set correctly.

    Resolution:-

    Repair(uninstall if repair does not work, .Net Framework2.0)

    Run the following from your command line to reset IIS registry settings for aspnet user.

    C:\WINDOWS\Microsoft.Net\Framework\v2.0.50727>aspnet_ regiis -i

  • 08-08-2009, 11:17 AM In reply to

    Re: Failed to access IIS metabase, when trying to browse to .NET 2.0 Website

     Thanks Guys ....

     I had the same problem of installing IIS later than ASP.NET and it was resolved after trying the above aspnet_regiis stuff.

     Thanks.

     

  • 08-09-2009, 3:37 AM In reply to

    • emel
    • Not Ranked
    • Joined on 08-09-2009, 7:30 AM
    • Posts 5

    Re: Failed to access IIS metabase, when trying to browse to .NET 2.0 Website

    Hi all, I'm also having this problem and none of the suggestions I've read about here and other forums on the web have worked.

    I've tried doing both aspnet_regiis -ga ASPNET and aspnet_regiis -ga MACHINENAME\ASPNET as well as uninstall and reinstall (-u and -i options respectively) to no avail.

    I've also uninstalled and installed the .NET framework. I've also checked the ASPNET account has access to the relevant folder and even the IIS metabase.bin file.

    The only thing that worked is if I add the ASPNET user account to the Administrators group. Now this doesn't seem to be right to me. Any ideas on how I can refine this a little further so that I don't have to grant full blown access to the ASPNET account?

    Any help much appreciated.

  • 08-10-2009, 10:34 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,216
    • IIS MVPs

    Re: Failed to access IIS metabase, when trying to browse to .NET 2.0 Website

  • 08-13-2009, 11:03 PM In reply to

    • emel
    • Not Ranked
    • Joined on 08-09-2009, 7:30 AM
    • Posts 5

    Re: Failed to access IIS metabase, when trying to browse to .NET 2.0 Website

    tomkmvp:

    What version of IIS are you on?

    Hi Tom,

    I'm using IIS 5.1 on Windows XP SP3.

  • 08-14-2009, 10:25 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,216
    • IIS MVPs

    Re: Failed to access IIS metabase, when trying to browse to .NET 2.0 Website

    tomkmvp:
    most likely the ASPNET account does not have access to your content files and folders.

    So this did not work?  You made sure ASPNET has at least NTFS Read permissions to the content files and folders?

Page 1 of 2 (21 items) 1 2 Next >
Microsoft Communities