tags:

views:

78

answers:

3

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  A: 

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

Matthew Cole
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.
Novice Developer
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:http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
Matthew Cole
+1  A: 

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

No Refunds No Returns
what are the steps to give permission?
Novice Developer
From windows explorer, right-click the directory, select the "Security" tab, add ASPNET/Full Control.
No Refunds No Returns
+1  A: 

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.

Bhushan