Re: Code Access Security

From: Vidhya N (vidhyan@yahoo.com)
Date: 04/10/03


From: "Vidhya N" <vidhyan@yahoo.com>
Date: Wed, 9 Apr 2003 16:17:28 -0700


Thanks for the response Rajeev!

Now I understand that the ASPNET user was having
restricted access.

After providing proper permissions to the ASPNET user, it
worked. I did not receive an error when the code attempted
to access the file.

I tried to change the Code Access Security policy in my
machine and removed the FileIO Permission using
mscorcfg.msc for My_Computer_Zone code group. Even after I
did that, I did not receive an error when the code tried
to access the file. I could not understand why ASP.NET did
not throw an exception in this case. Could you please shed
some light on that?

>-----Original Message-----
>By default ASP.NET process runs under a ASPNET user which
is a local
>user on you machine with limited access. So there is a
probability that
>the user under which the ASP.NET process is running is
not having write
>permissions on that folder which you are trying to write
the file.
>So if you don't want impersonation you can just give
ASPNET user the
>write permissions over that folder.
>In fact supporting impersonation and setting the windows
authentication
>on is not a good solution because it is not necessary
that all the users
>accessing ur web app will have write permission for that
folder though
>it works for you because obiviously you have write
permissions on your
>c:.
>
>RD
>
>*** Sent via Developersdex http://www.developersdex.com
***
>Don't just participate in USENET...get rewarded for it!
>.
>



Relevant Pages

  • Re: Create a writable folder in aspnet setup project
    ... Use the same method for folder. ... >> the ASPNET user during installation.I've set the writable property ... >> I thought to try and create a custom install action and manipulate ... >> how to change the current access permissions of an existing ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Create a writable folder in aspnet setup project
    ... Use the same method for folder. ... >> the ASPNET user during installation.I've set the writable property ... >> I thought to try and create a custom install action and manipulate ... >> how to change the current access permissions of an existing ...
    (microsoft.public.dotnet.general)
  • Re: Access Network Shares from asp.net
    ... the ASPNET user to be identical for the current user of the web server PC. ... > admins" and each user folder inherits that permission, ... > full access permissions for each user based on the folder. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Code Access Security
    ... By default ASP.NET process runs under a ASPNET user which is a local ... permissions on that folder which you are trying to write the file. ... In fact supporting impersonation and setting the windows authentication ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: ASP.NET - code access security
    ... By default ASP.NET process runs under a ASPNET user which is a local ... permissions on that folder which you are trying to write the file. ... In fact supporting impersonation and setting the windows authentication ...
    (microsoft.public.dotnet.framework.aspnet.security)