Exception Message: Could not load file or assembly 'Aspose.Pdf- Version=9.1.0.0

We installed provided package with Aspose trial license. During POC, we observed PDF generation failed and we got following errors in SharePoint logs.

*10/02/2017 06:10:49 -- Exception Source: SABMiller.BTF.Application Exception Message: Could not load file or assembly 'Aspose.Pdf, Version=9.1.0.0, Culture=neutral, PublicKeyToken=47b2d0fcacdd3eb6' or one of its dependencies. The system cannot find the file specified. Exception StackTrace: at SABMiller.BTF.Application.PDFGeneration.renderPDF(SPListItem CurrItem, String Filter)*

*at SABMiller.BTF.Application.PDFGeneration.b__0()*

*at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.b__2()*

*at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)*

*at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)*

*at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)*

*at SABMiller.BTF.Application.PDFGeneration.Page_Load(Object sender, EventArgs e) on10/02/2017 06:10:49*

While in our current SP 2010 farm, Aspose 9.1.0.0 dll is present in Windows GAC and PDF generation is working fine.We are using “Aspose Total for .NET” license there.

In new SP 2010 farm, Aspose 9.1.0.0 dll is missing and causing issues.

In which setup we can find “Aspose 9.1.0.0 dll”?

Thanks in advance.

Hi Rajesh,


Thanks for your inquriy. Please note it depends how you have referenced Aspose.Pdf Dll in your solution, either it is referenced from some folder or GAC or through NuGet. So you can make it available on your server accordingly.

Furthermore, if you are implementing same solution that is working fine on your other SP 2010 farm from GAC, then you can add Aspose.Pdf dll into GAC on new server as well.

Please feel free to contact us for any further assistance.

Best Regards,