One thing more, don’t declare the License variable in function scope as you are doing it in function scope, keep it in a class scope and initialize it in your Application start event.
You can also make it static for example
class SomeClass : …
{
//Class scope
static License licenseObj;
//Application load event or page load event
void Application_start(….)
{
//licenseObj has been declared in class scope not in function scope
licenseObj.SetLicense(Server.MapPath("~/Aspose.Total.lic"));
}
}
Many Thanks and Kind Regards,
Shakeel Faiz
Support Engineer
Aspose Tyumen Team