Hi,We have used the Aspose BarCode library to generate barcodes in our application. Now I am trying to add in the ability to detect a barcode in an image and am receiving this error: "The license is not valid for this product." when trying to set the license in the below code.
Aspose.BarCodeRecognition.License licRec = new Aspose.BarCodeRecognition.License();
licRec.SetLicense(@"aspose.barcode.lic");
Hi,
Thank you for using Aspose products.
Please check the expiry of your license. Open the .lic file in notepad and look for SubscriptionExpiry tag. It has date in YYYYMMDD format. If this date is prior to the release date of Aspose.BarCodeRecognition.dll then you may get this error.
In case your license has not expired yet then share your license file for your review. Please follow the instructions provided in below linked web page to send the license to babar.raza.
Hi,
Thank you for providing the license file.
Your license has not expired yet. Also when I tried to set the license for the latest version of Aspose.BarCodeRecognition assembly (v4.7.0), I was not able to observe the said exception on my end.
To further investigate this issue, could you please provide us the following information,
- Version of Aspose.BarCode for .NET
- OS version
- OS architecture (32/64 bit)
- OS service pack
- Type of application
- .NET Framework version
Thank you for your understanding and cooperation.
When I downloaded the latest version, it worked for me as well. Why would the license file not work for the version we had originally purchased?
Hi,
Thank you for the confirmation.
We can investigate the problem cause, if you could provide us the version information of your originally purchased product.
Regards,
The version I was using was 4.4
Hi,
I have tested your license with different versions of Aspose.BarCodeRecognition assemblies. Only the version 4.4.0 throws the said exception. All later versions can set the license with out any problem. So I believe, there was a bug in v4.4.0 that got fixed with the next release v4.4.1.
As your license has not expired yet so you can continue using the latest version as a part of your solution.
In case you need further assistance, please feel free to contact support.
Regards,