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

Free Support Forum - aspose.com

The license is not valid

Hello, I am getting an error “The license is not valid for this product.” When trying to set License for Aspose Diagram.
Here is my code:

var uri = new Uri(Assembly.GetExecutingAssembly().CodeBase);
string directory = Directory.GetParent(uri.AbsolutePath).FullName;
Aspose.Diagram.License license = new Aspose.Diagram.License();
string licensePath = Uri.UnescapeDataString(Path.Combine(directory, "Aspose.Diagram.Product.Family.lic"));
license.SetLicense(licensePath);

Do I have the right .lic file?
I am using Aspose.Diagram 22.4.0

@francisco.huchin

In order to check the license validity with 22.4 version of the API, please open it in notepad or any text editor and check it subscription expiry date. If the expiry date is before the day of 22.4 release date, the license would not work with it. In case the license expiry date is still valid for 22.4 version, please share your license file with us in a private message so that we can test it and address the issue accordingly.

You can send a private message by clicking on the username and pressing the Blue Message Button.

@francisco.huchin

Thanks for sharing the sample file. We were able to reproduce the issue in our environment. Therefore, it has been logged as DIAGRAMNET-52793 in our issue tracking system. We will further investigate it and let you know as soon as it is rectified. Please spare us some time.

We apologize for your inconvenience.

@francisco.huchin
This problem is special and license related, we provide a fix.
Please try the latest version,Thanks.Aspose.Diagram22.4.1.zip (6.9 MB)

1 Like

The issues you have found earlier (filed as DIAGRAMNET-52793) have been fixed in this update. This message was posted using Bugs notification tool by philip.zhou