Runtime licensing error
Posted: Thu Mar 03, 2011 10:43 pm
I am using TeeChart 2.0.2670.26520 in my C# application. Developing in a Windows XP VM with Visual Studio 2008.
I have my charting functionality in the Reporting component of the Visual Studio 2008 solution. It is referenced in the Reporting project and there is a license.licx file present in the Properties subfolder of this project. The license.licx contains...
Steema.TeeChart.TChart, TeeChart, Version=2.0.2670.26521, Culture=neutral, PublicKeyToken=9c8126276c77bdb7
The reporting DLL generated by the Reporting project is referenced by the main GUI project. This is the application EXE.
When I run the application in a test deployment VM (both WinXP and 64-bit Win7) and try to use any of the report charting functionality I get...
I managed to fix this error by referencing TeeChart and creating an entry in the license.licx in the GUI project. I'm a little unclear why I should need to do this since I'm not using TeeChart directly in the GUI project. I'm using it via the Reporting DLL. In the development VM this does not occur - it runs ok. It only occurs in the test deployment VMs.
Could anyone help explain this please?
Thanks,
John.
I have my charting functionality in the Reporting component of the Visual Studio 2008 solution. It is referenced in the Reporting project and there is a license.licx file present in the Properties subfolder of this project. The license.licx contains...
Steema.TeeChart.TChart, TeeChart, Version=2.0.2670.26521, Culture=neutral, PublicKeyToken=9c8126276c77bdb7
The reporting DLL generated by the Reporting project is referenced by the main GUI project. This is the application EXE.
When I run the application in a test deployment VM (both WinXP and 64-bit Win7) and try to use any of the report charting functionality I get...
Code: Select all
Object reference not set to an instance of an object.
at Steema.TeeChart.FrAccessProvider.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions)
at System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey)
at System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object instance, Boolean allowExceptions, License& license)
at System.ComponentModel.LicenseManager.Validate(Type type, Object instance)
at Steema.TeeChart.Chart..ctor()
at Steema.TeeChart.TChart..ctor()
at AtlasTechnology.HarvestScheduler.Reporting.ProductionChart.InitializeComponent()
at AtlasTechnology.HarvestScheduler.Reporting.ProductionChart..ctor(IScenario scenario)
at AtlasTechnology.HarvestScheduler.GUI.Main.toolsMenuItem_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Could anyone help explain this please?
Thanks,
John.