License load issue UWP

Hi!

Today i create Universal Windows Platform project, and install Aspose.PDF (2.5.0) package.
On app startup i do:

new Aspose.Pdf.License().SetLicense(“Aspose.Total.lic”);

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.

@mgkcortyw

Sadly, Aspose.PDF for .NET does not offer support for UWP (Windows 10 Universal Apps). For the sake of implentation, a feature request as PDFNET-42264 has already been logged in our issue tracking system. We have associated the ticket ID with this forum thread so that you will receive a notification as soon as the feature is available. Please be patient and spare us some time.

We are sorry for the inconvenience.