Here is the code and slides for the VBUG talk I gave last night on Code Access Security.

Lots of boilerplate stuff, including a custom permission.   more »