ASP.NET - code access security
From: Vidhya N (vidhyan@yahoo.com)
Date: 04/08/03
- Previous message: Vidhya Narasimhan: "Code Access Security"
- Next in thread: Rajeev Dubey: "Re: ASP.NET - code access security"
- Reply: Rajeev Dubey: "Re: ASP.NET - code access security"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Vidhya N" <vidhyan@yahoo.com> Date: Tue, 8 Apr 2003 14:16:08 -0700
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 someone could take a moment
to answer my question.
- Previous message: Vidhya Narasimhan: "Code Access Security"
- Next in thread: Rajeev Dubey: "Re: ASP.NET - code access security"
- Reply: Rajeev Dubey: "Re: ASP.NET - code access security"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|