Re: Code Access Security
From: Vidhya N (vidhyan@yahoo.com)
Date: 04/10/03
- Next message: Mike Moore [MSFT]: "RE: UNC file share and NTLM user identity"
- Previous message: Vidhya: "ASP.NET Code access security"
- In reply to: Rajeev Dubey: "Re: Code Access Security"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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!
>.
>
- Next message: Mike Moore [MSFT]: "RE: UNC file share and NTLM user identity"
- Previous message: Vidhya: "ASP.NET Code access security"
- In reply to: Rajeev Dubey: "Re: Code Access Security"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|