Aspose.Words licensing

Hi,

We use Aspose.Words for pdf generation.

We recently got a new license for Aspose.Words and as part of our testing we deleted the license file and tested the application and the pdf files were still gemerated.

Shouldn't it have thrown an error if it couldn't find the file?

Thanks,

M

Hi,


Thanks for your inquiry. You must be having try-catch block around “License.SetLicense” method. This method definitely throws “System.IO.FileNotFoundException” if the file is not found. Moreover, before calling the “Document.Save” method, you can check the value of “License.IsLicensed” property to determine if a valid license has already been applied or not.

Best regards,