You can try turning the CAS check off to see if this is indeed the problem.
One way of doing that would be caspol -security off from command line.
Also, you may find the following article that talks about CAS and SPS
helpful.
msdn.microsoft.com/.../...sscodeaccesssecurity.asp