// Program.cs using Syncfusion.Licensing; var builder = WebApplication.CreateBuilder(args); // Register Syncfusion license SyncfusionLicenseProvider.RegisterLicense("YOUR_NEW_LICENSE_KEY_HERE"); var app = builder.Build(); Use code with caution. For .NET MAUI
You must update your key whenever you perform a major version upgrade of your NuGet packages. How to Generate a Syncfusion License Key
Clear frontend package caches if necessary (e.g., npm cache clean --force ). syncfusion generate license key upd
from the Downloads and Keys page for your target major version and edition(s).
You will need to a new key from your account and update the registration in your code for the following reasons: // Program
1. How to Generate a License Key for Latest Versions (v31.1.17+)
var key = Environment.GetEnvironmentVariable("SYNCFUSION_LICENSE_KEY"); SyncfusionLicenseProvider.RegisterLicense(key); from the Downloads and Keys page for your
After purchasing a Syncfusion license, you must upgrade from the trial version:
The most common licensing error occurs when the license key version does not match the Syncfusion package version in use. Always ensure that:
The license key must match the major version of your Syncfusion packages. For example, if using version 25.1.x packages, use a key generated for version 25.x.x. Refer to the KB article on license key version selection for detailed guidance.