NullReference Exception on SetLicence


I have got the same Problem with Slides:
If I call SetLicence an NullRef Exception throws. You can see that the other SetLicence calls have no problems.

Same Problem with PDF I found here in the forum:
SetLicence: System.NullReferenceException: Object reference not set to an instance of an object

My Code:
using Excel = Aspose.Cells;
using Word = Aspose.Words;
using Visio = Aspose.Diagram;
using Pdf = Aspose.Pdf;
using PowerPoint = Aspose.Slides;

static void ApplyLicences()
Excel.License excel = new Excel.License();

Word.License word = new Word.License();

Visio.License visio = new Visio.License();

Pdf.License pdf = new Pdf.License();

PowerPoint.License pp = new PowerPoint.License();

Here the errormessage and Stacktrace:
at ? . .? (Stream stream)
at ? . .? (String licenseName, Assembly clientAssembly)
at Aspose.Slides.License.SetLicense(String licenseName)
at FuM.PDFConverter.Converter.ApplyLicences()

You know this behavior and a solution?


Hi Chris,

I have observed the sample code shared by you and suggest you to please try using Aspose.Slides for .NET 7.8.0 on your end. If there is still an issue then please share the license file with us by following these guide lines so that I may investigate the issue further on my end to help you out.

Many Thanks,

Thank you for your fast help.
With version 7.8 it works .