Syncfusion Nested Grid License error

Dear Syncfusion,

First of all, I want to thank you for your great software. I am building a software application and trying to use the nested grid view, but I am encountering a license error:

“This application was built using a trial version of Syncfusion Essential Studio. To remove the license validation message permanently, a valid license key must be included. Claim your free account.”

Here's what I have done so far:

I am using ASP.NET Core MVC with C#. I downloaded the NuGet packages Syncfusion.EJ2.AspNet.Core v26.1.35 and Syncfusion.Licensing v26.1.35.

I then went to Syncfusion -> My Dashboard -> Downloads and Keys -> Get License Key -> Platform: ASP.NET Core, Version 26.x.x. I copied the license key and added it to my program.cs file:A screenshot of a computer

Description automatically generated

//Register Syncfusion license

Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("Mgo+DSMBMAY9C3t2U1hhQlJBfV5AQmBIYVp/TGpJfl96cVxMZVVBJAtUQF1hTX5Udk1hW39bcH1SRWlV");


var app = builder.Build();


// Configure the HTTP request pipeline.

if (!app.Environment.IsDevelopment())

{

    app.UseExceptionHandler("/Home/Error");

    // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.

    app.UseHsts();

}


Please help me remove this error. Thank you


Arron Arriola



1 Reply

VS Vikram Sundararajan Syncfusion Team July 9, 2024 06:18 AM UTC

Hi Rejz Arron,


Greetings from Syncfusion support,


We understand that you are facing a license issue in your application. To resolve this, you have to register the license key in a script tag within the head, as per the following code snippet:


<head>

 

<meta charset="utf-8" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<title>@ViewData["Title"] - checklicense</title>

<link rel="stylesheet" rel='nofollow' href="~/lib/bootstrap/dist/css/bootstrap.min.css" />

<link rel="stylesheet" rel='nofollow' href="~/css/site.css" asp-append-version="true" />

<link rel="stylesheet" rel='nofollow' href="~/checklicense.styles.css" asp-append-version="true" />

<link rel="stylesheet" rel='nofollow' href=https://cdn.syncfusion.com/ej2/26.1.35/fluent.css />

<!-- Syncfusion ASP.NET Core controls scripts -->

<script src=https://cdn.syncfusion.com/ej2/26.1.35/dist/ej2.min.js></script>

<script>

ej.base.registerLicense('Ngo9BigBOggjHTQxAR8/V1NCaF5cXmZCf1FpRmJGdld5fUVHYVZUTXxaS00DNHVRdkdnWXheeHZXQ2RdUUx0WEc=');

</script>

</head>


Please get back us if you need further assistance.


Regards,

Vikram S


Loader.
Up arrow icon