Unauthorized access error to html pages in IIS 7.0

1

I am using VSTS 2008 + C# + .Net 3.5 + IIS 7.0. I have created a new web site and put an html file into the directory. And when I use browse function in IIS manager to browse the html file, I met with the following error, any ideas what is wrong?

BTW: I am very confused about unauthorized error since I run the worker process under administrator account. From the error message, I am confused why the logon method is anonymous and not using administrator account?

HTTP Error 401.3 - Unauthorized
You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.

Module IIS Web Core 
Notification AuthenticateRequest 
Handler StaticFile 
Error Code 0x80070005 
Requested URL http://localhost:80/a.html 
Physical Path C:\test\simplehosttest\a.html 
Logon Method Anonymous 
Logon User Anonymous 

thanks in advance, George

windows-server-2008
iis-7
asked on Server Fault Dec 13, 2009 by George2

2 Answers

2

Just because the AppPool identity account is an Administrator account, it doesn't mean that Anonymous users access resources as that account.

  1. Select your website (or the web-server/top-level)
  2. In the feature pane, select Authentication
  3. Right-click the "Anonymous Authentication" provider and select "Edit"
  4. If you want the AppPool identity to access the files for anonymous users, select "Application pool identity"
answered on Server Fault Mar 2, 2012 by Mathias R. Jessen
0

Verify the permission on C:\test\simplehosttest folder. Your best friend is http://live.sysinternals.com/procmon.exe which will let you know what is casuing Access Denied.

Hope this helps,
Vivek

answered on Server Fault Dec 14, 2009 by Vivek Kumbhar

User contributions licensed under CC BY-SA 3.0