We have a new Aspose.Total.lic file. When we implement the new file we receive 'The license is not valid for this product.'

We are using the following .Net C# code and receiving the below error.

Aspose.Pdf.License license = new Aspose.Pdf.License();
license.SetLicense(HttpContext.Current.Server.MapPath("~/Aspose.Total.lic"));

The license is not valid for this product.

@rexbrothers

Would you kindly share your license file in a private message with us. Please click over username and press Blue Message Button in order to send private message.

How do I share my license file?

I shared my file.

@rexbrothers

The license content you shared, was somehow modified. Please add your license file to ZIP Archive and attach to your private message.

@rexbrothers

Thanks for sharing it again.

We have checked your license file and it seems like it was corrupted. There may be several reasons for it. Your antivirus may have corrupted the file as well. There was another case of a license file not working because of URL Defence and the problem was the URL in the license file was changed to https://urldefense.com/v3/__https://purchase.aspose.com/policies/use-license.

Please try to download the license from website yourself and use it in your application. You can download your license file from Purchase Portal. In case you still face any issue, please feel free to let us know.