We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Visualization of grid in the designer Form

How can I insert the syncfusion grid in a Form AND view his designer? (View Designer)
this is the Error
One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.

A valid license cannot be granted for the type Syncfusion.Windows.Forms.Grid.GridModel. Contact the manufacturer of the component for more information.
Hide

at System.ComponentModel.LicenseManager.Validate(Type type)
at Syncfusion.Windows.Forms.Grid.GridControl..ctor(GridModel model)
at Syncfusion.Windows.Forms.Grid.GridControl..ctor()
at Slb.Horizon.Products.GenericComponents.SlbGridControl..ctor()

1 Reply

AD Administrator Syncfusion Team July 31, 2006 05:53 AM UTC

Hi Angel,

Typically this error occurs if you do not have a license file in your project when it was compiled or the license file contains incomplete information.

Please follow the steps outlined below :

(i) Delete all the Syncfusion dlls and policy files in the GAC (C:\WINDOWS\Assembly folder on a Windows XP machine or C:\WINNT\Assembly folder on a Windows 2000 machine)

(ii) Run the Assembly Manager tool choosing v4.2.0.37 Prebuilt Release option. The Assembly Manager tool can be accessed from Start Menu >> Programs >> Syncfusion >> Essential Suite 4.2.0.37 >> Assembly Manager. Once again, go to the GAC and delete Syncfusion policy files only. Makes sure that the dlls present in the GAC are of version 4.2.0.37.

(iii) Open your project in the designer and and remove all the Syncfusion references. Re-add them from the ...\Syncfusion\Essential Suite\Assemblies folder. Make sure they are of version v4.2.0.37

(iv) Also in the designer, make sure that a licenses.licx file is present in the project. It is mandatory to have a licenses.licx file in the project during compilation so that the licensing information gets embedded in the exe generated. If you do not have one, then please follow the steps below to generate the licenses.licx file :

Add a "dummy" form in your project, and then add some Syncfusion controls onto the form. You could delete the form once the licenses.licx file is regenerated.

Also, not all controls need to be added - licensing is done on a per product level, so just one control from each syncfusion assembly that you are using needs to be added.

From Syncfusion.Grid.dll - the GridControl

3.Now rebuild your project and run it.

Let us know how it goes.

Regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon