Where do I register the Syncfusion 2 License

Answered
1
0

Hello everyone,

I added the Nuget Package Wisej-3-Syncfusion2 (3.0.11) and Wisej-3 (3.0.14) to a fresh .NET 4.8 project and created an empty Chart. As expected does the Test project throw a License error when I run it. I added my WiseJ dev License to the Web.config. The Chart works, but Syncfusion still shows a banner on the top that I need to register a Syncfusion license, with a link to this page: https://help.syncfusion.com/common/essential-studio/licensing/overview

We got a Community License Key, but I struggle to find the way to register the key.

In this link https://help.syncfusion.com/common/essential-studio/licensing/how-to-register-in-an-application there are different options. The Winforms doesn’t work since “Syncfusion” is not a namespace that is defined by the WiseJ Nuget packages. The Wisej.Web.Ext.Syncfusion2(.ej2Base) namespace has no options with licenses. Do I need to use the JavaScript register? How do I do that? It says I need to add Syncfusion JavaScript script reference, but the controls already work, so I assume the WiseJ Extention takes care of it.

These links didn’t help me: https://docs.wisej.com/extensions/premium-extensions/overview (This only tells me I need a Java Script Bundle License, okay got it), https://docs.wisej.com/extensions/premium-extensions/wisej.web.ext.syncfusion2 , https://docs.wisej.com/examples/premium/syncfusion-ej2-documenteditor (or the other examples)

I would have expected to find a guide somewhere how to register this properly, since you officially support this extension.

I hope you can help me

  • You must to post comments
Best Answer
0
0

Hi Sascha,

There are two separate issues here:
1. The CDN url
– You can’t use Wisej.Web.Ext.Syncfusion2.json in a class library. You must add it to the main project directly. We have the usage in a class library logged as an enhancement but either way it still needs to be set as an embedded resource within that project.

Since it wasn’t loading the version from your class library, it loaded the default version from CDN that’s packed with the extension.

2. The license issue
– If the EJ2 distribution requires a license key you can apply it like mentioned in another post using Application.Eval after a Syncfusion widget is shown for the first time.
– Alternatively, you can add a JavaScript file reference in the Wisej.Web.Ext.Syncfusion2.json that loads the Syncfusion license there. The packages are loaded synchronously so whatever order you keep the packages in there will be the order they load in.

We’ve logged an enhancement to apply the license key using ej2Base.License = “some key”. This enhancement will be available in the next release.

HTH,
Levie

  • Sascha Lorenz
    Since the config is stated as optional anyway, I didn’t worry about it much. I had no intention of changing anything (yet) and only copied the standard json file from here https://docs.wisej.com/extensions/premium-extensions/configuration . Thanks for the input and fix about the confusion with the License. edit: I’m not able to figure out when to run the JS registerLicense, so I will just wait until I’m able to do it per C#
  • You must to post comments
0
0

Hello Frank,

 

Here you go. I attached the two projects in a zip file. The code changed since the last upload, since I’m actively testing things.

 

Greetings

Attachment
  • You must to post comments
0
0

Hello Alaa,

All I can say is that I did what I explained in my question and have that prompt. I simply installed your Nuget packages in a new project and have the prompt. I uploaded a Screenshot which should have all necessary info. You can also see that the chart works without me installing anything, but the Application.Eval throws a JS error that ej is not defined.

Afterwards I installed Syncfusion Essential Studio 20.2.0.36. I need the JS package, right? It changes nothing for now. Why do I need to install and implement anything just to register the license? And how exactly do I do that in a WiseJ project now?

Greetings

 

edit: also I added the rest of my test code; I’m aware the register License is at the wrong spot, but the ej JS namespace is not existent anyway.

  • Frank (ITG)
    Hi Sascha, can you please attach a full test project. It´s not entirely clear to me just by looking at the files you sent. TIA, Frank
  • You must to post comments
0
0

Hi Sascha,

To add to my previous answer, there is no commercial validation with the default version included in our Widget (it’s from CDN), but now Syncfusion requires this so you must use the registerLicense method in JavaScript.

You can add this peace of code below into your application’s main entry point,
Application.Eval("ej.base.registerLicense('someLicenseKey')")

This should also do the trick!

Also, as stated here: Introducing License Key Validation For The Essential Js 2 Platforms, you would only need to use ej.base.registerLicense with Essential Studio 2022 Volume 1 or greater.

Our extension uses an old CDN package, so in theory, you shouldn’t have that prompt!

HTH,
Alaa

  • You must to post comments
0
0

Hi Sascha,

You’re probably missing the Syncfusion assemblies, the “Syncfusion” namespace is part of those!
Make sure that you have Syncfusion installed on your machine, and then you can use any of the methods described in their documentation: Syncfusion |How To Register In An Application

This is how you’ll be able to register your license!

HTH,
Alaa

  • David
    • David
    • Nov 26, 2022 - 2:29 pm
    using Syncfusion.Licensing; … //Register Syncfusion license SyncfusionLicenseProvider.RegisterLicense(“Mgo+DSMBaFt/QHNqVVhkW1pFdEBBXHxAd1p/VWJYdVt5flB……….”); No luck either
  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.