We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose.Words licensing


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 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,