Hello,
We use the Aspose PDF tool (license type:- Enterprise) for one of our websites.
Apparently sometime we get exception which is as below :-
System.NullReferenceException: Object reference not set
to an instance of an object.
at Aspose.Pdf.ស.ឯ(Stream ֒)
at Aspose.Pdf.ស.ឯ(String ឰ, Assembly ឱ)
at Aspose.Pdf.License.SetLicense(String licenseName)
<span style=“font-size: 11pt; font-family: “Calibri”,“sans-serif”;”> at LoadAsposeLicense()
The code used for loading the license file is as follows :-
<span style=“font-size: 11pt; font-family: “Calibri”,“sans-serif”;”>LoadAsposeLicense()
{
_AsposeLicense = new Aspose.Pdf.License();
_AsposeLicense.SetLicense(“Aspose.Pdf.lic”);
}
I double checked that the license file (Aspose.Pdf.lic) is in the same directory as the executable file.
Interesting thing here is that it happens only sometimes, not everytime …I would appreciate any quick help in this matter .
Thanks,
Harshal