RE: "Failed to access IIS metabase" on XP

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Steven,

I'm sorry, I made a mistake in my previous post. If I grant ASPNET
permissions to metabase.bin, the applications still error with the "Failed to
access..." error. I forgot to remove ASPNET from the Administrators group
when I ran that test.

The programs still run if aspnet_wp runs as SYSTEM, though.

Clint

"Steven Cheng[MSFT]" wrote:

Hi Clint,

Welcome to the ASPNET newsgroup.

From your description, you've originally installed ASP.NET 1.0 and 1.1 on
your XP machine which works correctly. After you installed .net framework
2.0/ASP.NET 2.0 on it, any ASP.NET applications no longer work and report
"Failed to access IIS metabase..." error. Also, if you remove ASP.NET 2.0,
the 1.0 and 1.1 web application can work correctly. If there is anything I
misunderstand, please feel free let me know.

Based on my experience, the problem is likely involved by the new installed
.net framework 2.0 and should be a environment specfic issue. Before you
perform a thorough reinstall, I think we can try the following steps:

1. Revert the machine to your original status(remove the 2.0 and ensure 1.0
and 1.1 works), then reinstall the .net framework 2.0 and configure the
default site to use 2.0 (perform iisreset).

2. After that try run a simple asp.net 2.0 web page at IIS root site to see
whether it report the same error.

3. If the same error occur, try change the ASP.NET worker process account
from the default "machine\ASPNET" account to Local System account. This can
be configured in machine.config(in .net 2.0's framework folder) through the
<processModel> element. Since 2.0 hidden the default configuration for
<processModel> you need to explicitly add the configuration (just change
the username attribute to "SYSTEM"). Here is the msdn reference which have
mentioend the .net 2.0's default configuration of <processModel>, you can
modify the machine.config according to it:

#processModel Element (ASP.NET Settings Schema)
http://msdn2.microsoft.com/en-us/library/7w2sway1.aspx

After change the machine.config, save and perform IIS reset, after that,
try running the asp.net web app again.

4. If still not work, this is not likely a simple permission issue and
there may has some serious problem with the .net 2.0's intallation. If it
start work, the problem is likely a permission issue, so that we can swtich
back the processModel setting and try using filemon tool to monitor the
file access failures to find the file which cause the permission error.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)



















.



Relevant Pages

  • RE: "Failed to access IIS metabase" on XP
    ... net framework 2.0 and should be a environment specfic issue. ... you need to explicitly add the configuration (just change ... start work, the problem is likely a permission issue, so that we can swtich ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Links for .NET security stuff
    ... .NET Framework Developer's Guide: Configuring Permission ... .NET Framework Developer's Guide: Configuring Code Groups ... Strong-Named Assemblies ...
    (microsoft.public.dotnet.general)
  • Re: gacutil and co. DLL built under 2beta, deploying to IIS5+DotNet Framework 1.1?
    ... but the first time a method was called. ... a question from a year ago (2003-10-22 -- in the parallel aspnet group ... user ASPNET write permission in c:\winnt\temp. ... gave ASPNET that permission. ...
    (microsoft.public.dotnet.framework.setup)
  • Re: System.Security.SecurityException: Permission denied Error while invoking methods in a Component
    ... (If you're using version 2.0 of the .NET framework, ClickOnce is another option for permissions elevation.) ... If you're not attempting to run the applicaiton over the network, could you please post the complete exception details, as returned from its ToString method? ... I am getting an error while trying to create an excel file. ... To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: newbie question (Failed to update database)
    ... Visual web developer 2005 express ... Set ACL on C:\Inetpub\wwwroot to give ASPNET full permission ... Start VWD and create a new personal website ...
    (microsoft.public.dotnet.framework.aspnet)