License problem when using VB.Net 2005 Publish option
Posted: Thu Oct 05, 2006 11:59 am
I have an application that I deploy using the Publish method in VB.Net 2005.
When I run the application, I get the following error:
************** Exception Text **************
System.NullReferenceException: 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 WinderLog.ALChartForm.InitializeComponent()
at WinderLog.ALChartForm..ctor()
at WinderLog.JumboInfoForm.ProfileButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at DevExpress.XtraEditors.BaseButton.OnClick(EventArgs e)
at DevExpress.XtraEditors.BaseButton.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.XtraEditors.BaseControl.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)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
WinderLog
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Documents%20and%20Settings/cbHCarr/Local%20Settings/Apps/2.0/W19RV27D.KEV/51V0MYQ6.7DA/wind..tion_9a4cc43f9099b841_0001.0000_e7dc651f28d273a5/WinderLog.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
DevExpress.Utils3
Assembly Version: 3.2.5.0
Win32 Version: 3.2.5.0
CodeBase: file:///C:/Documents%20and%20Settings/cbHCarr/Local%20Settings/Apps/2.0/W19RV27D.KEV/51V0MYQ6.7DA/wind..tion_9a4cc43f9099b841_0001.0000_e7dc651f28d273a5/DevExpress.Utils3.DLL
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
DevExpress.XtraGrid3
Assembly Version: 3.2.5.0
Win32 Version: 3.2.5.0
CodeBase: file:///C:/Documents%20and%20Settings/cbHCarr/Local%20Settings/Apps/2.0/W19RV27D.KEV/51V0MYQ6.7DA/wind..tion_9a4cc43f9099b841_0001.0000_e7dc651f28d273a5/DevExpress.XtraGrid3.DLL
----------------------------------------
DevExpress.XtraEditors3
Assembly Version: 3.2.5.0
Win32 Version: 3.2.5.0
CodeBase: file:///C:/Documents%20and%20Settings/cbHCarr/Local%20Settings/Apps/2.0/W19RV27D.KEV/51V0MYQ6.7DA/wind..tion_9a4cc43f9099b841_0001.0000_e7dc651f28d273a5/DevExpress.XtraEditors3.DLL
----------------------------------------
DevExpress.Data3
Assembly Version: 3.2.5.0
Win32 Version: 3.2.5.0
CodeBase: file:///C:/Documents%20and%20Settings/cbHCarr/Local%20Settings/Apps/2.0/W19RV27D.KEV/51V0MYQ6.7DA/wind..tion_9a4cc43f9099b841_0001.0000_e7dc651f28d273a5/DevExpress.Data3.DLL
----------------------------------------
TeeChart
Assembly Version: 2.0.2456.16162
Win32 Version: 2.0.2456.16162
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/TeeChart/2.0.2456.16162__9c8126276c77bdb7/TeeChart.dll
----------------------------------------
As a test, I used the tradition create Setup Application and installed the app, and the Chart works.
How can I get the Application to work using the Publish Method?
When I run the application, I get the following error:
************** Exception Text **************
System.NullReferenceException: 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 WinderLog.ALChartForm.InitializeComponent()
at WinderLog.ALChartForm..ctor()
at WinderLog.JumboInfoForm.ProfileButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at DevExpress.XtraEditors.BaseButton.OnClick(EventArgs e)
at DevExpress.XtraEditors.BaseButton.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.XtraEditors.BaseControl.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)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
WinderLog
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Documents%20and%20Settings/cbHCarr/Local%20Settings/Apps/2.0/W19RV27D.KEV/51V0MYQ6.7DA/wind..tion_9a4cc43f9099b841_0001.0000_e7dc651f28d273a5/WinderLog.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
DevExpress.Utils3
Assembly Version: 3.2.5.0
Win32 Version: 3.2.5.0
CodeBase: file:///C:/Documents%20and%20Settings/cbHCarr/Local%20Settings/Apps/2.0/W19RV27D.KEV/51V0MYQ6.7DA/wind..tion_9a4cc43f9099b841_0001.0000_e7dc651f28d273a5/DevExpress.Utils3.DLL
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
DevExpress.XtraGrid3
Assembly Version: 3.2.5.0
Win32 Version: 3.2.5.0
CodeBase: file:///C:/Documents%20and%20Settings/cbHCarr/Local%20Settings/Apps/2.0/W19RV27D.KEV/51V0MYQ6.7DA/wind..tion_9a4cc43f9099b841_0001.0000_e7dc651f28d273a5/DevExpress.XtraGrid3.DLL
----------------------------------------
DevExpress.XtraEditors3
Assembly Version: 3.2.5.0
Win32 Version: 3.2.5.0
CodeBase: file:///C:/Documents%20and%20Settings/cbHCarr/Local%20Settings/Apps/2.0/W19RV27D.KEV/51V0MYQ6.7DA/wind..tion_9a4cc43f9099b841_0001.0000_e7dc651f28d273a5/DevExpress.XtraEditors3.DLL
----------------------------------------
DevExpress.Data3
Assembly Version: 3.2.5.0
Win32 Version: 3.2.5.0
CodeBase: file:///C:/Documents%20and%20Settings/cbHCarr/Local%20Settings/Apps/2.0/W19RV27D.KEV/51V0MYQ6.7DA/wind..tion_9a4cc43f9099b841_0001.0000_e7dc651f28d273a5/DevExpress.Data3.DLL
----------------------------------------
TeeChart
Assembly Version: 2.0.2456.16162
Win32 Version: 2.0.2456.16162
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/TeeChart/2.0.2456.16162__9c8126276c77bdb7/TeeChart.dll
----------------------------------------
As a test, I used the tradition create Setup Application and installed the app, and the Chart works.
How can I get the Application to work using the Publish Method?