4

I am using asp.net 2.0 and IIS 7 on vista 64 bit. everytime, when i try to open page in browser, i get following error.

Access is denied. Description: An error occurred while accessing the resources required to serve this request. You might not have permission to view the requested resources.

Error message 401.3: You do not have permission to view this directory or page using the credentials you supplied (access denied due to Access Control Lists). Ask the Web server's administrator to give you access to 'C:\example\WebApplication1\WebApplication1\Default.aspx'.

1

4 Answers 4

2

Does your application pool's user have read permissions to the files you're trying to serve? By default, this should be the NETWORK SERVICE user.

Your ASPNET user will also need access.

Permissions can be set here: Right click the directory or file --> Properties --> Security tab

Sign up to request clarification or add additional context in comments.

3 Comments

network service user has read permission. i try to add iis_user and give full permission. but it was same problem. then i added everyone user with read, write and list folder contents permissions. it works for me.
That's probably fine for a dev machine. Definitely don't go this route on a production server though. :-) You can always use Procmon to figure out which user is getting denied access: technet.microsoft.com/en-us/sysinternals/bb896645.aspx
Zombie thread, I know: Where is that in perfmon? I see Result: ACCESS DENIED in Event Properties, but that's about it. image
2

You need to give the permission to user name "Internet Guest Account" on C:\example directory on an inner directory given you have used the same user in the IIS anonymous setting.

Comments

1

Give your aspnet local user permission to the directory you're trying to access.

2 Comments

what are the steps to give permission?
From windows explorer, right-click the directory, select the "Security" tab, add ASPNET/Full Control.
1

You need to add permission to the user binded with Application Pool on folder in which is your website.

The name of the user is usually IUSR, NETWORK SERVICE or IIS_IUSRS.

Permision to the root: Read and Execute, List folder and read Permission to the root/App_Data: All

Or another approach could be to set the username in the application pool (Advance setting -> Identity) to the username which has rights to read the directory. You may need create new application pool.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.