I have created a sandboxed webpart that calls an assembly that I created using the Open XML SDK Productivity Tool. This assembly is used to create a word document based upon fields in a SP list. The solution is producing the "That assembly does not allow partially trusted callers" error. I added the following declaration to the class:
<Microsoft.SharePoint.Security.SharePointPermission(System.Security.Permissions.SecurityAction.LinkDemand, ObjectModel:=True)> _
but the error is still produced. Is it possible to use the Productivity Tool in a sandboxed solution?
Thanks.
Mark L Cole