Licensing a Blazor Server Side App in .NET 6

Hi

I am creating a new Blazor Server Side App using Visual Studio 2022 and .NET 6.0.

Where should I add the code to register the Syncfusion Licence? Startup.cs no longer exists; would the licensing code work if I placed it in Program.cs

See https://help.syncfusion.com/common/essential-studio/licensing/registering-license-keys

Thanks

Chris


3 Replies 1 reply marked as answer

JL Joshna Lingala Uthama Reddy Lingala Syncfusion Team November 10, 2021 01:33 PM UTC

Hi Christopher, 
  
Thanks for contacting Syncfusion Support. 
  
We have checked the reported query for “adding of license-key in Blazor Server .Net 6” at our end. We let you know that you can register the license key in program.cs file for Blazor Server Application with .Net6 as below 
  
  
var app = builder.Build(); 
  
//Register Syncfusion license 
       Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("YOUR LICENSE KEY"); 
  
  
However, we have prepared a sample for your reference which you can download from the below link 
  
  
Kindly try with the above information and get back to us if you have any queries. 
  
Regards, 
Joshna L  
 


Marked as answer

CB Christopher Bell November 10, 2021 01:48 PM UTC

Hi Joshna


Many thanks for your very speedy reply.  Very much appreciated - it works (as expected!)


Chris



VM Vengatesh Maniraj Syncfusion Team November 11, 2021 04:33 AM UTC

Hi Chris, 

You are most welcome. 

Please get in touch with us if you need any further assistance. 

Regards, 
Vengatesh 
 


Loader.
Up arrow icon