Link to home
Start Free TrialLog in
Avatar of AXISHK
AXISHK

asked on

The process account used to run ASP.NET must have read access to the IIS metabase

I have copied a ASP.net program on my laptop, where visual .NET 2005 has been installed (together with ASP.NET Framework 2.0).
I have created a virtual directory for this applicaiton and set the ASP.NET tab under My testing website to 2.0.

When I access the site through the IE, it return with the error below :
"The process account used to run ASP.NET must have read access to the IIS metabase"

I go to the Local Users and Groups, but couldn't find a account named ASPNE. Only I could find related account is IUSR_.XXX and IWAM_XXXX. But refer to my material on hand, Window XP should use ASPNET. Is this related to my problem and how should I fix it ??
Avatar of Chandan_Gowda
Chandan_Gowda
Flag of United States of America image

If you've had to add the machinename\aspnet account to the web operators group to get rid of the 'Failed to Access IIS Metabase' error then this solution will help.

1. iisreset -stop
2. Goto C:\WINNT\Microsoft.NET\Framework\v2.0.50727
3. aspnet_regiis -ua
4. aspnet regiis -i
5. aspnet_regiis -ga machinename\aspnet
6. goto   C:\WINNT\Microsoft.NET\Framework\v1.1.4322
7. aspnet_regiis -i
8. iiseset -start
Avatar of AXISHK
AXISHK

ASKER

Thanks. But need something to clarify :

"If you've had to add the machinename\aspnet account to the web operators group " 

Do you mean I need to create a ASPNET in my local machine. Inaddtion, which members should I add to the user ? I couldn't find web operators group.

tks.
ASKER CERTIFIED SOLUTION
Avatar of Chandan_Gowda
Chandan_Gowda
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I used this solution and it worked for me also.  Perhaps the .net installation process should warn people to install IIS first if they intend to use it locally for development.

Thanks Chandan Gowda!
This is an extremely minor point and I hate to bring it up, but just in case someone isn't paying attention, the last step should read:

8. iisreset -start

It looks like a simple typo in the official answer, but just in case someone out there is confused, I thought i'd correct it.  Nevertheless, thank you!  This answer really helped me out