"Failed to access IIS metabase" after installing Windows XP Pro

"Failed to access IIS metabase" after installing Windows XP Pro

am 18.11.2006 16:14:15 von Wayne Erfling

This is a multi-part message in MIME format.

------=_NextPart_000_0010_01C70AFA.4CE9F010
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

When I installed Visual Studio 2005 on Windows 2000 Pro, my asp.net 2.0 =
sites on http://localhost worked fine.

Then I upgraded the OS to Windows XP Pro and now all the sites report =
"Failed to access IIS metabase", all the time ("file" websites work =
fine).

I have already been working this problem a full day, and have already =
tried:
1) "Repair" .NET Framework 2.0
2) aspnet_regiis -ga for every user on my system (starting with =
ASPNET, and IUSER_machin, IWAM...)
3) aspnet_regiis -u followed by aspnet_regiis -i
4) Deinstall and completely reinstall .NET Framework 2.0
5) Deinstall and completely reinstall Visual Studio 2005

I have found a reference for adding the ASPNET user as an "operator", =
but as IIS 5.1 does not support the Operators tab this is not possible.

I can make the error message "Failed to access IIS metabase" go away by =
making the ASPNET user a member of the Administrators local group, so =
this is a good step for diagnosis but I don't want ASPNET to be an =
administrator.

How can I set the access to the metabase manually for ASPNET?

Other wacky idea: My OS is loaded in C:\WINNT (because of the upgrade =
from Win2000); could there be some hard-coded "C:\Windows" somewhere in =
aspnet_regiis that derails my attempts?

Thanks for any help!

---Wayne
------=_NextPart_000_0010_01C70AFA.4CE9F010
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable



charset=3Diso-8859-1">




When I installed Visual Studio 2005 on =
Windows 2000=20
Pro, my asp.net 2.0 sites on href=3D"http://localhost">http://localhost=20
worked fine.

 

Then I upgraded the OS to Windows XP Pro and =
now all the=20
sites report "Failed to access IIS metabase", all the time ("file" =
websites work=20
fine).

 

I have already been working this problem a full =
day, and=20
have already tried:

1) "Repair" .NET Framework 2.0

2) aspnet_regiis -ga <user> for every =
user on my=20
system (starting with ASPNET, and IUSER_machin, IWAM...)

3) aspnet_regiis -u followed by aspnet_regiis=20
-i

4) Deinstall and completely reinstall .NET =
Framework=20
2.0

5) Deinstall and completely reinstall Visual =
Studio=20
2005

 

I have found a reference for adding the ASPNET =
user as an=20
"operator", but as IIS 5.1 does not support the Operators tab this is =
not=20
possible.

 

I can make the error message "Failed to access =
IIS=20
metabase" go away by making the ASPNET user a member of the =
Administrators local=20
group, so this is a good step for diagnosis but I don't want ASPNET =
to be=20
an administrator.

 

How can I set the access to the metabase =
manually for=20
ASPNET?

 

Other wacky idea: My OS is loaded in C:\WINNT =
(because of=20
the upgrade from Win2000); could there be some hard-coded "C:\Windows" =
somewhere=20
in aspnet_regiis that derails my attempts?

 

Thanks for any help!

 

---Wayne


------=_NextPart_000_0010_01C70AFA.4CE9F010--

Re: "Failed to access IIS metabase" after installing Windows XP Pro

am 18.11.2006 22:04:02 von David Wang

I know you are trying hard to troubleshoot and fix the issue and
thinking wacky/out-of-the-box. But let's not throw logic out the
window:
- If there was a hardcoded C:\WINDOWS in aspnet_regiis.exe, ASP.Net
would NEVER work even if you made it Administrator.
- Forget about the Operator - it is not a functionality on IIS in XP
Pro, so ASP.Net cannot be normally relying on it to function
- I am very weary of trying repair/reinstallation as a troubleshooting
technique because they tend to destroy the state of the machine and put
it into some other non-expected configuration, which hinder
troubleshooting.

I talk about IIS troubleshooting in this blog entry, but the approach
really applies to troubleshooting in general:
http://blogs.msdn.com/david.wang/archive/2005/12/31/HOWTO_Ba sics_of_IIS6_Troubleshooting.aspx

Thus, your observation that ASP.Net works when ASPNET is in
Administrators group is the most useful piece of information to me
because here is the fact that I can then introduce:
ASP.Net does access the metabase, but not with the ASPNET user.

I am NOT going to focus on how to give ASPNET user access to the
metabase because I know that is not correct. The reason is this -- yes,
ASP.Net does access the metabase, but not with the ASPNET user. It
already has a stub loaded in inetinfo.exe which runs as Local System to
access the metabase. So, one does NOT need to give the ASPNET user
access to the metabase to run ASP.Net

Therefore, I think your problem is that you are running code as ASPNET
user which try to use the metabase. I only know of aspnet_wp.exe
processes which run as ASPNET user to execute ASP.Net code... so I
think your problem is that some ASP.Net code -- probably httpModule
since it is affecting all your ASP.Net requests -- is trying to access
the metebase as ASPNET user. What non-default httpModules,
httpHandlers, or other add-ons to ASP.Net are you using?

The only conflicting piece of assumption in my mind is that you said
this all worked on Windows 2000 Pro -- which is not very different to
ASP.Net from a configuration perspective -- so upgrading should not be
introducing this sort of failure. How exactly did you use ASP.Net on
Windows 2000 Pro? Were you using IIS5 on Windows 2000 Pro with ASP.Net?
Or were you using the built-in ASP.Net Test webserver?


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//



Wayne Erfling wrote:
> When I installed Visual Studio 2005 on Windows 2000 Pro, my asp.net 2.0 sites on http://localhost worked fine.
>
> Then I upgraded the OS to Windows XP Pro and now all the sites report "Failed to access IIS metabase", all the time ("file" websites work fine).
>
> I have already been working this problem a full day, and have already tried:
> 1) "Repair" .NET Framework 2.0
> 2) aspnet_regiis -ga for every user on my system (starting with ASPNET, and IUSER_machin, IWAM...)
> 3) aspnet_regiis -u followed by aspnet_regiis -i
> 4) Deinstall and completely reinstall .NET Framework 2.0
> 5) Deinstall and completely reinstall Visual Studio 2005
>
> I have found a reference for adding the ASPNET user as an "operator", but as IIS 5.1 does not support the Operators tab this is not possible.
>
> I can make the error message "Failed to access IIS metabase" go away by making the ASPNET user a member of the Administrators local group, so this is a good step for diagnosis but I don't want ASPNET to be an administrator.
>
> How can I set the access to the metabase manually for ASPNET?
>
> Other wacky idea: My OS is loaded in C:\WINNT (because of the upgrade from Win2000); could there be some hard-coded "C:\Windows" somewhere in aspnet_regiis that derails my attempts?
>
> Thanks for any help!
>
> ---Wayne
> ------=_NextPart_000_0010_01C70AFA.4CE9F010
> Content-Type: text/html; charset=iso-8859-1
> Content-Transfer-Encoding: quoted-printable
> X-Google-AttachSize: 2572
>
>
>
>
>
>
>
>
>

When I installed Visual Studio 2005 on Windows 2000
> Pro, my asp.net 2.0 sites on
> worked fine.

>
 

>
Then I upgraded the OS to Windows XP Pro and now all the
> sites report "Failed to access IIS metabase", all the time ("file" websites work
> fine).

>
 

>
I have already been working this problem a full day, and
> have already tried:

>
1) "Repair" .NET Framework 2.0

>
2) aspnet_regiis -ga <user> for every user on my
> system (starting with ASPNET, and IUSER_machin, IWAM...)

>
3) aspnet_regiis -u followed by aspnet_regiis
> -i

>
4) Deinstall and completely reinstall .NET Framework
> 2.0

>
5) Deinstall and completely reinstall Visual Studio
> 2005

>
 

>
I have found a reference for adding the ASPNET user as an
> "operator", but as IIS 5.1 does not support the Operators tab this is not
> possible.

>
 

>
I can make the error message "Failed to access IIS
> metabase" go away by making the ASPNET user a member of the Administrators local
> group, so this is a good step for diagnosis but I don't want ASPNET to be
> an administrator.

>
 

>
How can I set the access to the metabase manually for
> ASPNET?

>
 

>
Other wacky idea: My OS is loaded in C:\WINNT (because of
> the upgrade from Win2000); could there be some hard-coded "C:\Windows" somewhere
> in aspnet_regiis that derails my attempts?

>
 

>
Thanks for any help!

>
 

>
---Wayne

>
> ------=_NextPart_000_0010_01C70AFA.4CE9F010--