Not stable problem with License

Hi all

We’re facing with issue to set the license key:

ERROR: ServiceAction: DownloadPaymentAdvice SessionID: 3369fc69-1559-44df-8190-07248afbac3a Code: null Message: Object reference not set to an instance of an object. Details: "Start: 2011-10-07 06:31:14.416 End: 2011-10-07 06:31:15.416 UserActionInstanceID: 49979378 StackTrace: at x21e4a7ad326d8315.x220f433da4115056.x7d0214bf69711dd9(Stream xcf18e5243f8d5fd3)
at x21e4a7ad326d8315.x220f433da4115056.x7d0214bf69711dd9(String x1c1fc72fe1a3b4ea, Assembly x5807f920b6fc67c4)
at Aspose.Pdf.License.SetLicense(String licenseName)

We’re using Aspose in WCF Service, which is called from Web UI. Service runs fine, but in one time it stops to generate PDF files with the error, mentioned above. After the service restarting, it runs fine with all file generations. This problem is getting very annoying. Can anyone advice where we can have a look or what to do here?
We’re using Aspose.Pdf.dll for .NET - 4.7.0.0

The workflow, which we’re using to init aspose:
We have the AsposeManager class, which is created per request.
public class AsposeManager
{
private static Aspose.Pdf.License _asposePdfLicence;
private static Aspose.Words.License _asposeWordsLicence;
private const string ASPOSE_PDF_LIC = “Aspose.Pdf.lic”;
private const string ASPOSE_WORDS_LIC = “Aspose.Words.lic”;


protected Aspose.Words.Document ContainerDocument;

public AsposeManager()
{

_asposeWordsLicence = new Aspose.Words.License();
_asposePdfLicence = new Aspose.Pdf.License();
_asposeCellsLicence = new Aspose.Cells.License();


_asposeWordsLicence.SetLicense(asposeWordsLicPath);
_asposePdfLicence.SetLicense(asposePdfLicPath);
}
}

May be it was not good idea to init Aspose per request and create a singleton?

Thanks in advance

Hi Vladimir,

Thanks for using our products.

The version of Aspose.Pdf for .NET that you are using is quite old and in recent release versions, we have made some corrections related to licensing feature. Please try using the latest release version of Aspose.Pdf for .NET 6.2.0 and in case you face any problem, please feel free to contact. We apologize for your inconvenience.

Please visit the following link for information on