I have some code:
SPFieldMultiChoice category = (SPFieldMultiChoice)contentType.Fields["Category"];
Where contentType is a SPContentType instance.
This works fine as part of some code that runs in SPSecurity.RunWithElevatedPrivileges(). Well, that is until I configure an information management policy on the content type. Now it throws a security exception... "That assembly does not allow partially trusted callers. mscorlib"
If I turn the retention policy off everything is fine again... What am I doing wrong? Do I have to set my solution up as fully trusted?
