Using Aspose.Words in a SharePoint sandbox solution

Does Aspose.Words work in a SharePoint sandbox solution (i.e. have the assemblies been compiled with “Allow partial trust”)? I see there is a SharePoint version but there is no mention of sandbox support.

Hi Leigh,


Thanks for your inquiry. I am afraid, Aspose.Words for SharePoint is not sandbox compatible. However, please note that Aspose.Words for .NET is a CLS compliant .NET assembly, written entirely in C# and it will work under the “Partial Trust” in case you use it to generate, modify or convert documents in any format except PDF or XPS. However, if you need to use Aspose.Words to convert documents to PDF, XPS or render images of pages, you need to run your application under “Full Trust” because Aspose.Words needs to enumerate and read TrueType fonts installed on the computer. If we can help you with anything else, please feel free to ask.

Best regards,

I have tried using the Aspose.Words for .net in a sandbox solution. However, it performs file IO as part of its operations - setting the licence key under the sandbox environment causes an exception on the file IO operation. So some “standard” windows operations are not allowed in a sandbox. Happy to work with Aspose to create a sandbox friendly version

Hi Leigh,


Thanks for your feedback. If we can help you with anything else, please feel free to ask.

Best regards,