How do I enable licensing to Syncfusion controls in Visual C++ applications?
The following are the steps to be followed to resolve the licensing error for the Syncfusion Controls in Visual C++ Projects. These steps assume that the user is using the version 126.96.36.199 and .Net Framework 3.5.
Build the Visual C++ Project that contains the Syncfusion controls. It will request some licensing checks and then a TestApplication.exe will be created in the output folder.
Unzip the file to the project output folder, where the TestApplication.exe is located. Check the controls.txt file, and edit the version for your framework (As said above, we have assumed framework as 3.5 hereafter).
Open Visual Studio .NET 2008 Command Prompt and type lc.exe. This is to verify that the lc utility under the 3.5 framework is configured in the user's system.
In the command prompt, navigate to the output folder and run genlic.bat with the Application.exe as its argument.
[Command Prompt]C:\TestApplication\debug>genlic.bat TestApplication.exe
The TestApplication.exe.licences file will be generated in the output folder. Copy the TestApplication.exe.licences to the folder where the solution file resides.
Open the Property Pages and select Linker --> Input --> Embed Managed Resource File. Type $(SolutionDir)TestApplication.exe.licences and click 'Apply' and 'Ok'. The $(SolutionDir) is a macro that returns the directory path where the solution file resides. This step will embed the licensing information (*.exe.licenses) in to the exe file.$(SolutionDir)TestApplication.exe.licenses is equivalent to C:\TestApplication\TestApplication.exe.licenses
Rebuild and run the application. The licensing error popups will be suppressed this time.
If the user tries build the *.exe.licenses file with reference to the wrong version of Syncfusion.Core, he will be encountered with the following error.
Controls.txt(1) : Error LC0003: Unable to resolve type 'Syncfusion.Core.Licensing.LicensedComponent, Syncfusion.Core, Version=188.8.131.52, Culture=neutral, PublicKeyToken=632609b4d040f6b4'
The user have used 184.108.40.206 instead of 220.127.116.11 while building the *.exe.licenses with 3.5 Framework.
Even after changing the version information, if the build reports the same error, the problem is there with your Syncfusion Essential Studio installation. Inorder to avoid this, please follow the steps shown below.
This page will automatically be redirected to the sign-in page in 10 seconds.