Urgent: Aspose License stopped working

This morning our .net web application that uses Aspose.pdf began throwing errors when setting the license.

This is an urgent request since this error has made the application completely unusable right now.

Below is the code using to set the license:
try {
Aspose.Pdf.License license = new Aspose.Pdf.License();
license.SetLicense(“Aspose.Total.lic”);
} catch (Exception ex) {
log.Error(ex.Message, ex);
throw ex;
}

Below is the error that is being returned:
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 eApprovalWeb.Classes.AposePdfDoc.SetLicense()

This web application has not been modified for almost 2 months, but the error just began showing up this morning.

Thanks,
Paul

Hi Paul,


Thanks for contacting support.

Please check if the license being referenced inside application is not expired and is properly accessible to application. Also please share the license file by following the instructions specified over following link, so that we can test the scenario in our environment. We are sorry for this inconvenience.How to send a license?

Thanks, everything with the application and license were fine. After about 1.5 hours the errors stopped occurring. Not sure why or what caused the problem. No changes were made on our end. Problem hasn’t occurred since.

Hi Paul,


Thanks for the acknowledgement. There may have been issue where application based on our API’s encountered problems while accessing the license. However, unless we have tested/investigated this problem in our environment, we may not be able to share the exact reason causing this problem. Nevertheless, if you again encounter the same issue, please share some sample project along with license file (through instructions shared earlier), so that we can try replicating the problem in our environment. We are sorry for your inconvenience.