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.
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
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.
We’ve logged an enhancement to apply the license key using ej2Base.License = “some key”. This enhancement will be available in the next release.
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 188.8.131.52. 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?
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.
You can add this peace of code below into your application’s main entry point,
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!
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!
Please login first to submit.