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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

We are getting an odd error when we run an application

Thread ID:





19600 Sep 29,2004 08:51 PM UTC Sep 30,2004 06:39 PM UTC WinForms 1
Tags: Tools
License error runtime - in user release??? System
Asked On September 29, 2004 08:51 PM UTC

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.TypeInitializationException: The type initializer for "Syncfusion.Windows.Forms.Tools.XPMenus.PopupMenu" threw an exception. ---> System.ComponentModel.LicenseException: A valid license cannot be granted for the type Syncfusion.Windows.Forms.Tools.ToolsComp. Contact the manufacturer of the component for more information. at System.ComponentModel.LicenseManager.Validate(Type type) at Syncfusion.Windows.Forms.Tools.XPMenus.PopupMenu..cctor() --- End of inner exception stack trace --- at Syncfusion.Windows.Forms.Tools.XPMenus.PopupMenu..ctor() at Syncfusion.Windows.Forms.Tools.TabbedMDIManager..ctor() at testGuardian1.testForm.testForm_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Loaded Assemblies ************** mscorlib Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/winnt/microsoft.net/framework/v1.1.4322/mscorlib.dll ---------------------------------------- testGuardian1 Assembly Version: Win32 Version: CodeBase: file:///E:/TEMP/testGuardian/testGuardian1.exe ---------------------------------------- System.Windows.Forms Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/winnt/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll ---------------------------------------- System Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/winnt/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll ---------------------------------------- System.Drawing Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/winnt/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll ---------------------------------------- Syncfusion.Tools Assembly Version: Win32 Version: CodeBase: file:///E:/TEMP/testGuardian/Syncfusion.Tools.DLL ---------------------------------------- Syncfusion.Shared Assembly Version: Win32 Version: CodeBase: file:///E:/TEMP/testGuardian/Syncfusion.Shared.DLL ---------------------------------------- Lic Assembly Version: Win32 Version: CodeBase: file:///e:/temp/testguardian/syncfusion.shared.dll ---------------------------------------- ************** JIT Debugging ************** To enable just in time (JIT) debugging, the config file for this application or machine (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled. For example: When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the machine rather than being handled by this dialog.

Administrator [Syncfusion]
Replied On September 30, 2004 06:39 PM UTC

Hi, I presume you are having problems while deploying your application. Please follow the suggestions 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 chosing v2.1.0.9 Prebuilt Release option. The Assembly Manager tool can be accessed from Start Menu >> Programs >> Syncfusion >> Essential Suite >> 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 (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 v2.1.0.9. Set their CopyLocal property to false. (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.Shared.dll, you can drop on a ColorPicker control. From Syncfusion.Edit.dll - the EditControl From Syncfusion.Tools.dll - the CalculatorControl From Syncfusion.Grid.dll - the GridControl From Syncfusion.Diagram.dll - the Diagram control 3. Now rebuild your project and run it. Note that to deploy Essential Tools application you would need - Essential Tools, Grid and Shared dlls. Try deploying the application now and let me know how it goes. We appreciate your cooperation, and thanks for your interest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon