I am getting inconsistently the following error message while setting license file,
Error message:
Error Message:System.NullReferenceException: Object reference not set to an instance of an object.
at ? .(Stream )
at ? .(String , Assembly )
at Aspose.Pdf.License.SetLicense(String licenseName)
at Com.Stpl.Av.AsposePDF.AvAsposepdfreader..ctor()
I am using AsposePDF.Net v16.12 and the license file (Aspose.PDF.lic) is embedded in DLL file since we don’t want to expose the license file. The issue is inconsistent and I could not provide you exact scenario for this. The following is the code sample used to set the license
Code Sample:
Aspose.Pdf.License license = new Aspose.Pdf.License();
license.Embedded = true;
license.SetLicense(“Aspose.Pdf.lic”);
This is happening very frequently. Can you please help me in resolving this issue.
Thanks,
Chenna Basappa