Hi, I am having an issue with the syncfusion license randomly failing.
On my mainpage, I have a couple of datagrids, these work fine.
I will launch a second page:
await Navigation.PushAsync(new MyPage());
Where MyPage is a tabbed page.
The first time I open the page, it will work, however on opening the page a second time, it will always fail, I will get a "The included synfusion license is invalid".
Hitting continue will crash the app.
I have this set in MauiProgram.cs
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("xxxxx");
builder.ConfigureSyncfusionCore();
How do I fix this?
Hi Chris,
We suspect that you have registered the application with an invalid key, another version of license key, or another platform’s license key.
Syncfusion license keys are major version and product-specific and the generated license key is just a string that needs to be registered before any Syncfusion control is initiated.
If you use Syncfusion assemblies from NuGet packages (nuget.org), using it from trial installer, or if you're upgrading from one major version to another, such as from v27.* to v28.* you should generate and register the corresponding version and product license key in your projects to prevent trial license warnings.
To know about generating license key,
https://help.syncfusion.com/maui/licensing/how-to-generate
To know about registering license key,
https://help.syncfusion.com/maui/licensing/how-to-register-in-an-application
Also, ensure that all the referenced Syncfusion assemblies\NuGet packages are all on the same version (v28.*.*) as the license key’s version (v28.*.*) in your project.
If the license key is not registered properly, the below license errors will be displayed.
https://help.syncfusion.com/maui/licensing/licensing-errors
Sometimes, old Syncfusion packages might be referred from NuGet cache in the project.
So, could you please try cleaning your project, clear the NuGet cache from both “%userprofile%” folder and the NuGet installed location, deleting the bin\obj folders and rebuild your application, then check whether it resolves the issue?
If the reported issue is still not resolved, please share us the following details to check issue further from our side,
Please let us know any concerns.
Regards,
Kalaiyarasu R
Updating to the latest and getting a new license key has solved the issue.
Hi Phunction,
Happy that your issue is resolved and we are marking the thread as solved. Please feel free to contact us for future technical queries.
Regards,
Kalavathi Nallathambi