Re: Access to the path is denied

From: Holly Mazerolle (hollymamsft_at_online.microsoft.com)
Date: 12/30/03


Date: Tue, 30 Dec 2003 14:22:31 GMT

I agree with Sachin in that you are looking at a permissions issue
concerning the ASPNET account. It is reccomended that if you need to grant
permission to a location other than what the Framework absolutely needs you
should use impersonation so that you are giving the permission only to the
IIS authenticated user. Also, if you want to make sure of who and what
permission is needed you can use a tool called filemon from
www.sysinternals.com. This tool monitors file access on the machine. You
would want to restart IIS, run filemon, reproduce the error, stop filemon
and then look for any Access Denieds in the results. Also it will list what
account was accessing the location.

Here is an article on impersonation:
306158 INFO: Implementing Impersonation in an ASP.NET Application
http://support.microsoft.com/?id=306158

This posting is provided "AS IS" with no warranties, and confers no rights.

Holly



Relevant Pages

  • Re: asp.net and ldap
    ... you still use impersonate and grant the impersonated user the access ... permission to the folder you want to write? ... | permissions to the aspnet account, so it could upload images to a folder. ... |> I use this code to try to connect to ldap: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: I need help with setting up teh default aspnet account on a DC
    ... > I'm having problems setting the permissions on the dotnet temp ... right settings to ASPNET account. ... > have permission to view or edit the current permission settings......even ... You may need to take "ownership" of the target folders. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Word template to be filled by the server in aspnet
    ... The permission issue is I have to create an ASPNET account and grant ... permission to that account for accessing the Word.Application object! ... Terry Burns wrote: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Access denied to file
    ... giving write access to the folder for the ASPNET account should do it. ... > The error instructions are: ... > I have tried to give write permission to the directory ...
    (microsoft.public.dotnet.security)
  • Re: Additional Restrictions - option
    ... you should run filemon on the ftp server. ... >>the 'some other users' have some permission and rights> issue. ... >>> bimoseekin ...
    (microsoft.public.inetserver.iis.security)