Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Can I use a class created using the Open XML SDK 2.0 Productivity Tool in a Sandboxed Solution?

$
0
0

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


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>