Maxim Karpov posts a great article explaining Code Access Security... A good read...

http://www.codeproject.com/gen/design/CASDesignPatterns.asp