For more information, see the following resources:
For more information about code access security, see Chapter 8, "Code Access Security in Practice," and Chapter 9, "Using Code Access Security with ASP.NET."
For information about code access security and role-based security, see the MSDN article, ".NET Framework Security," at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconnetframeworksecurity.asp .