Today i create Universal Windows Platform project, and install Aspose.PDF (2.5.0) package.
On app startup i do:
But while execution of this line i instantly receive strange error:
System.NotSupportedException: ‘Assembly.Load(byte, …) is not supported in AppX.’
Also after that i try stream license approach, but it also failed with same error:
using(var ms = new MemoryStream(File.ReadAllBytes(“Aspose.Total.lic”)))
new Aspose.Pdf.License().SetLicense(ms); // exception
If i set license for Aspose.Cells, it’s works without any issues:
new Aspose.Cells.License().SetLicense(“Aspose.Total.lic”); // succeded
What’s wrong with Aspose.Pdf?
Looks like issue only in UWP projects, because same code works perfectly in WPFCore projects.
Please take a look.