ASP.NET Code access security
From: Tim Clamp (TClamp@welcom.com)
Date: 04/09/03
- Next message: Tim Clamp: "Re: Access Denied Error"
- Previous message: Tim Clamp: "Re: Access Denied Error"
- In reply to: Vidhya Narasimhan: "ASP.NET Code access security"
- Next in thread: Vidhya: "ASP.NET Code access security"
- Reply: Vidhya: "ASP.NET Code access security"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Tim Clamp" <TClamp@welcom.com> Date: Wed, 9 Apr 2003 10:37:21 -0700
The error really goes deeper than the Code Access
Security model. It deals with Windows security
permissions on the directory.
The ASPNET_WP runs by default under the ASPNET user,
which has very limited access. By implementing
impersonation, you are changing the account that
ASPNET_WP runs under. This account, which has greater
access, is able to write files to the directory.
I hope this helps!
Tim Clamp
>-----Original Message-----
>I am beginner when it comes to .NET Security.
>
>I understand that we can control the code access
>permissions using CASPOL utility or through mscorcfg.msc
>tool. I wrote an ASP.NET WebForms application that
writes
>to a file in the c: drive. I received an error saying
>access denied when the code attempted to access the C
>drive. So, I set the authentication to Windows and
>Identity-Impersonate to true in the Web.config file.
This
>made it work. I started thinking about the Code Access
>Security. The ASP.NET application belongs to the Code
>Group of "My_Computer_Zone" in the machine level
security
>policy and also the Code Group has permission set to
>FullTrust. Why am I not able to do a File IO operation
>without setting the impersonation to true?
>
>Note: I did not alter the default security policy
settings
>in my machine.
>
>It would be really helpful if somebody could take a
moment
>to answer my question.
>.
>
- Next message: Tim Clamp: "Re: Access Denied Error"
- Previous message: Tim Clamp: "Re: Access Denied Error"
- In reply to: Vidhya Narasimhan: "ASP.NET Code access security"
- Next in thread: Vidhya: "ASP.NET Code access security"
- Reply: Vidhya: "ASP.NET Code access security"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|