Problem registering license

Hi,

I have a licensed Essential Studio.

Starting a new WPF app and imported 3 nuget packages (nuget.org) (all version 19.2.0.47 - latest at the moment):

  1. Syncfusion.Licensing
  2. Syncfusion.Themes.FluentDark.WPF
  3. Syncfysion.UI.WPF.NET
Following the documentation and to get the 'trial' warning gone, I need to register in my App.xaml.cs file with a generated key on the site like following :

public partial class App : Application {

Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("my copied long string as key goes here but not on a forum");

}


The problem is that when I use the code provided in de docs, 'RegisterLicense' is not recognized as part of the namespace/package ('It does not exist in the current context' - paraphrasing). But if I look at the description in nuget it states that the licensing package is needed if using nuget packages ...

If I'm using the wrong package, could you please point to the correct one.

Thanks,
Geert

3 Replies

MT Manikandaprabu Thiagarajan Syncfusion Team July 14, 2021 09:01 AM UTC

Hi Geert, 

Thanks for contacting Syncfusion support.  
 
It seems the license key is registered in App class directly. So please register the license key in App() constructor inside the class App. 
 
 
 
Find below the details to know about registering WPF license key, 
 
 
The generated license key is just a string that needs to be registered before any Syncfusion control is initiated code in your class library\console application.   
 
The following code is used to register the license. Ensure that Syncfusion.Licensing.dll is referenced in your project where the license key is being registered.  
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("YOUR LICENSE KEY");  

Let us know if you’ve any other queries.  


Regards, 
Manikandaprabu.T


GM GMas July 14, 2021 01:09 PM UTC

Of course it is ! How stupid of me !

A little bit embarrassing after 30+ programming years ...

I think my bedtime was way past at that moment !

Thanks guys !

Cheers,

Geert



MT Manikandaprabu Thiagarajan Syncfusion Team July 15, 2021 07:34 AM UTC

Hi Geert,  
 
Thanks for the update.  
 
We are glad that you’ve resolved the problem. Let us know if you need any further assistance on this.   
   
Regards,   
Manikandaprabu.T 


Loader.
Up arrow icon