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

  • Question

  • User1204915534 posted

    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!

    Sunday, March 2, 2008 11:58 AM

Answers

  • User1073881637 posted

    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

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Monday, March 3, 2008 12:03 AM
  • User-823196590 posted

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

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Monday, March 3, 2008 8:54 AM

All replies

  • User-1853252149 posted

    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

    Sunday, March 2, 2008 1:49 PM
  • User1204915534 posted

    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.

    Sunday, March 2, 2008 4:51 PM
  • User1073881637 posted

    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

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Monday, March 3, 2008 12:03 AM
  • User-823196590 posted

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

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Monday, March 3, 2008 8:54 AM
  • User1204915534 posted

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

    Monday, March 3, 2008 9:58 AM
  • User-1184703123 posted

    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/ 

    Tuesday, October 28, 2008 11:06 PM
  • User-963754669 posted

    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

    Tuesday, February 10, 2009 5:42 AM
  • User1538713898 posted

    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

    Sunday, February 22, 2009 6:12 PM
  • User108574228 posted

     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

    Thursday, April 23, 2009 12:45 AM
  • User-1176233794 posted

     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.

     

    Saturday, August 8, 2009 11:17 AM
  • User665034424 posted

    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.

    Sunday, August 9, 2009 3:37 AM
  • User-823196590 posted

    What version of IIS are you on?

    Monday, August 10, 2009 10:34 AM
  • User665034424 posted

    What version of IIS are you on?

    Hi Tom,

    I'm using IIS 5.1 on Windows XP SP3.

    Thursday, August 13, 2009 11:03 PM
  • User-823196590 posted

    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?

    Friday, August 14, 2009 10:25 AM
  • User665034424 posted

     

    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?

    Yes, I have checked. The files are stored under the C:\Inetpub\wwwroot directory and the ASPNET account belongs to the Users group. Granting the ASPNET account full control to the content folder makes no difference.

    I've also checked that the ASPNET account has read access to the IIS metabase using the Metabase Explorer. Changing the permissions to full control also has no effect. Strange.

    My last thought was to reinstall IIS and .NET, but the when I try to uninstall IIS I get errors from Windows XP with a very vague error regarding the failing to delete some files. I've tried other things like aspnet_regiis -u first as well as uninstalling the .NET framework and rebooting, but still no go.

    Saturday, August 15, 2009 4:36 AM
  • User1073881637 posted

    Enable auditing, repro the issue and look in the security event log.

    http://weblogs.asp.net/steveschofield/archive/2008/03/07/detecting-permission-issues-using-auditing-and-process-monitor.aspx

    Saturday, August 15, 2009 6:28 PM
  • User665034424 posted

     

    Hi Steve, thanks for the tip. Unfortunately, I did not see any failed audit events in the event log after enabling auditing as described in your post.

    I've also tried using Filemon filtered by the aspnet_wp.exe process. There are a couple of errors but it didn't look like anything of the access denied category. Any ideas what I should be looking for? I see a couple of NAME_NOT_FOUND results for registry queries and some BUFFER_OVERFLOW errors when accessing some of the .NET configuration files.

    The file is too large to include here, so if anyone can indicate what would be beneficial to help debug the issue, I could include some snippets.

    Monday, August 17, 2009 2:40 AM
  • User1073881637 posted

    I would filter in filemon or process monitor on the PID (process ID) vs. monitoring everything.  that can help reduce noise. 

    I'd turn off WWW service, then type netstat -an to see if 0:0:0:0:80 is displayed.  That would show something is also listening on port 80

    Monday, August 17, 2009 8:15 AM
  • User665034424 posted

    I would filter in filemon or process monitor on the PID (process ID) vs. monitoring everything.  that can help reduce noise. 

    I'd turn off WWW service, then type netstat -an to see if 0:0:0:0:80 is displayed.  That would show something is also listening on port 80

    As mentioned in my previous post, I'm filtering by process name (aspnet_wp.exe).

    I've just confirmed their are no other processes listening on port 80.

    Tuesday, August 18, 2009 1:15 AM
  • User-419785299 posted

    Granting aspnet user to have metabase access solved for me. you can try on executing the below line on your v2.0 root folder  

    aspnet_regiis -ga aspnet

    Sunday, October 11, 2009 1:04 AM
  • User-1916308868 posted

    Dear Ayyalappa S B

     It worked for me.I was trying this for a month and now i resolved my problem with your sujjestion.

    If you have time kindly tell me  other attributes  for  aspnet_regiis

    Thank you so much

    thanks and regards,

    lokesh

    lokesh.kumar@cplmg.com

    Monday, December 28, 2009 11:26 AM
  • User1250551369 posted

    Please chk if ASP.NET or ASPNET users has the R&W permissions on your website contents folder and similarly on the %WINDIR%/Microsoft.Net/Framework/<Version folder>/ folder.

    If not give the RW permissions to ASPNET user account.

    Your issue will be resolved. If still not you can get back to us.

     

     

    Friday, March 26, 2010 10:14 AM
  • User-178662429 posted

    Well reinstalling IIS solves this Issue, suggest to run below steps

    Thursday, May 6, 2010 12:47 AM
  • User-178662429 posted

    Well reinstalling IIS solves this Issue, suggest to run below steps

     

    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

    Thursday, May 6, 2010 12:47 AM
  • User223536980 posted

    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

    Great Thanks !!!
    Monday, May 24, 2010 5:53 AM
  • User-1745111210 posted

    Thanks, it woks for me

    Wednesday, June 30, 2010 2:10 PM
  • User-316023898 posted

     Hi All,

    I have also faced this issues . In my case basic cause of the issue is Symantec Antivirus . Because of that i am not able to register aspnet_regiis. Hence i formatted the machine and installed all software's again. Then also coming the same errors and IIS issues.  At last i found that these all error made because of Symantec. So i have uninstalled the Symantec and my problem gets solved .

    Errors that i have received,

    1) ---------------------------
    aspnet_regiis.exe - Application Error
    ---------------------------
    The application failed to initialize properly (0xc0000005). Click on OK to terminate the application.
    ---------------------------

     2)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.

     

    Please try to uninstall Antivirus, may be this will help you

    Thanks

    Saneesh K P, Paipra

     

     

     

     

     

     

    Saturday, July 31, 2010 7:44 AM
  • User1064570854 posted

    To resolve that issue please follow steps below -

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

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

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

    4. Give 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. Register 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.


    After following the above steps we configured virtual directory versions as required and test both ASP.NET 1.1 and ASP.NET 2.0 application.

    Everything will work after that.

     Please don't forget to mark as a solution.

    Thanks!

    Monday, August 2, 2010 8:56 AM
  • User1064570854 posted

    Hi Saneesh

    This thread will resolve your problem...

    http://www.symantec.com/connect/forums/sep-ru5-0xc0000005-error 

    Main thing that you should be doing is

    “sc config sysplant start= disabled”

    and reboot...

    Monday, August 2, 2010 9:00 AM
  • User551899388 posted

    It solves my problem.

    Thanks Very Much

    Tuesday, February 15, 2011 1:26 AM
  • User-888139985 posted

    Thanks, it worked.

    Rgs, Sid.

    Wednesday, March 16, 2011 5:40 PM
  • User-972708585 posted

     Thanks it works for me too!!!

    Thursday, March 24, 2011 11:25 AM
  • User-504128882 posted

    The cause of my problem was very similar to Saneesh's. In  my case it was some other security software called DeviceLock. This is designed to prevent data transfer to USB sticks etc. My attempts to run aspnet_regiis were fruitless, nothing happened at all. It worked at version 1.1, but all subsequent versions failed as above, with no message. Also, this must have been an update to the software, as it had been working for ages. As soon as I stopped the 2 executables belonging to DeviceLock, the aspnet_regiis -ga command worked and all was well again.

    Tuesday, April 26, 2011 4:26 AM
  • User689501474 posted

    I got the same error, try running

    aspnet_regiis -i

     This will register latest framework with iis. This solved my issue.

     

    Wednesday, June 15, 2011 4:26 PM
  • User17396140 posted

    I got the same error, try running

    aspnet_regiis -i

     This will register latest framework with iis. This solved my issue.

     

    Worked for me.
    Thursday, October 6, 2011 4:34 PM
  • User-515183 posted
    Yes. Running aspnet_regiis -ga aspnet Will solve the problem.
    Monday, October 24, 2011 5:02 AM