In building components for SharePoint, you run into the Security Exception
occasionally. For me, it's when I call a function that returns a boolean
value. When I try to debug it, I can't even step into the function to see
what's dying (when I put the debugger to stop on the line where the function
is called, it does stop, but won't let me step into it. All it says is
"Security Exception". I check the call stack and sure enough, my method is
getting called, but I can't get in there. So... how do you narrow it down
what the security problem is so I can grant the correct permissions in my
custom security policy file for the virtual server? I don't want to just
throw it into the GAC as that's not a very secure way to test.