Hi,
We purchased Aspose.Total Licence (Developer Small Business) on 23/11/2018 for our Window Service. Since the purchase, we have been using the licence without problems until we went live.
We have one Window service installed on Test with the licence, and same window service on Live. Both services are on same physical location.
Once we started the service on Live, we started getting the following error messages on test, so it seems like that both services running in parallel causing issue with licence, not sure why?
Error:
System.NullReferenceException: Object reference not set to an instance of an object.
at .(Stream )
at .(String , Assembly )
at Aspose.Pdf.License.SetLicense(String licenseName)
So, we had to shut off the window service on test to avoid impacting live service. But ideally we want both services to be running, as we are always upgrading our services hence require testing on Test service before going live.
We are embedding the licence as resource as per the instructions given on aspose site.
Aspose.Pdf.License pdfLic = new Aspose.Pdf.License();
pdfLic.SetLicense(“TheHub.BusinessObjects.Communication.Aspose.Total.lic”);
pdfLic.Embedded = true;
Aspose.Words.License wordLic = new Aspose.Words.License();
wordLic.SetLicense(“TheHub.BusinessObjects.Communication.Aspose.Total.lic”);
Aspose.PDF and Aspose.Words are the main core elements that are being utilised by our window service.
We need to identify why this issue is happening, so any help or recommendation will be greatly appreciated as we want to start our test service asap.
Thanks,
Erum Ahsan