Free Support Forum - aspose.com

Licence file get locked out on webservice

Hello - I am using the single licence on a webservice to create powerpoint report. Works fine in general but intermittenly (i think it is when multiple clients access the webservice it comes up with the error: Cannot get licence file). It then works again after a few mins.

public Presentation(string fullPath)

{

License license = new License();

license.SetLicense(DSPSystem.Borg.Constants.DSPEnums.cAsposeSlidesLicence);

m_sFullPath = fullPath;

}

Dear dspdev,

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for using Aspose.Slides.

I have requested the technical team to help you as soon as possible. You should not declare the License variable in function scope, declare it in class scope.

The most important you shouldn’t call SetLicense for each client access.
It must be called only once when web service application starts.