EDN Admin
Well-known member
When i run the application in visual studio 2010 my pos printers are working well but in the bin folder exe file my application says the following error for posprinter (System.NullReferenceException: Object reference not set to an
instance of an object.)
See the end of this message for details on invoking <br/>
just-in-time (JIT) debugging instead of this dialog box.<br/>
<br/>
<br/>
************** Exception Text **************<br/>
System.NullReferenceException: Object reference not set to an instance of an object.<br/>
at WindowsApplication12.frmmain.frmmain_Load(Object sender, EventArgs e) in D:UsersPriyaDesktop2012 -DULIPRINT - Copy (15)KJ - Print LOGO LIST VIEW TABWindowsApplication12Form1.vb:line 235<br/>
at System.EventHandler.Invoke(Object sender, EventArgs e)<br/>
at System.Windows.Forms.Form.OnLoad(EventArgs e)<br/>
at System.Windows.Forms.Form.OnCreateControl()<br/>
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)<br/>
at System.Windows.Forms.Control.CreateControl()<br/>
at System.Windows.Forms.Control.WmShowWindow(Message& m)<br/>
at System.Windows.Forms.Control.WndProc(Message& m)<br/>
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)<br/>
at System.Windows.Forms.ContainerControl.WndProc(Message& m)<br/>
at System.Windows.Forms.Form.WmShowWindow(Message& m)<br/>
at System.Windows.Forms.Form.WndProc(Message& m)<br/>
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)<br/>
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)<br/>
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)<br/>
<br/>
<br/>
<br/>
<br/>
************** Loaded Assemblies **************<br/>
mscorlib<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>
CodeBase: file:///D:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll<br/>
----------------------------------------<br/>
WindowsApplication12<br/>
Assembly Version: 1.0.0.0<br/>
Win32 Version: 1.0.0.0<br/>
CodeBase: file:///D:/Users/Priya/Desktop/2012%20-DULIPRINT%20-%20Copy%20(15)/KJ%20-%20Print%20LOGO%20%20LIST%20VIEW%20TAB/WindowsApplication12/bin/Debug/WindowsApplication12.exe<br/>
----------------------------------------<br/>
Microsoft.VisualBasic<br/>
Assembly Version: 8.0.0.0<br/>
Win32 Version: 8.0.50727.4927 (NetFXspW7.050727-4900)<br/>
CodeBase: file:///D:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll<br/>
----------------------------------------<br/>
System<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>
CodeBase: file:///D:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll<br/>
----------------------------------------<br/>
System.Windows.Forms<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>
CodeBase: file:///D:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll<br/>
----------------------------------------<br/>
System.Drawing<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>
CodeBase: file:///D:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll<br/>
----------------------------------------<br/>
System.Configuration<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>
CodeBase: file:///D:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll<br/>
----------------------------------------<br/>
System.Xml<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>
CodeBase: file:///D:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll<br/>
----------------------------------------<br/>
System.Runtime.Remoting<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>
CodeBase: file:///D:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll<br/>
----------------------------------------<br/>
Microsoft.PointOfService<br/>
Assembly Version: 1.12.0.0<br/>
Win32 Version: 1.12.1296.00<br/>
CodeBase: file:///D:/Windows/assembly/GAC_MSIL/Microsoft.PointOfService/1.12.0.0__31bf3856ad364e35/Microsoft.PointOfService.dll<br/>
----------------------------------------<br/>
System.Data<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>
CodeBase: file:///D:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll<br/>
----------------------------------------<br/>
Microsoft.VisualBasic.PowerPacks.Vs<br/>
Assembly Version: 10.0.0.0<br/>
Win32 Version: 10.0.30319.1<br/>
CodeBase: file:///D:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic.PowerPacks.Vs/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.PowerPacks.Vs.dll<br/>
----------------------------------------<br/>
AxInterop.OposPOSPrinter_CCO<br/>
Assembly Version: 1.0.0.0<br/>
Win32 Version: 1.0.0.0<br/>
CodeBase: file:///D:/Users/Priya/Desktop/2012%20-DULIPRINT%20-%20Copy%20(15)/KJ%20-%20Print%20LOGO%20%20LIST%20VIEW%20TAB/WindowsApplication12/bin/Debug/AxInterop.OposPOSPrinter_CCO.DLL<br/>
----------------------------------------<br/>
System.Transactions<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>
CodeBase: file:///D:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll<br/>
----------------------------------------<br/>
System.EnterpriseServices<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>
CodeBase: file:///D:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll<br/>
----------------------------------------<br/>
Interop.OposPOSPrinter_CCO<br/>
Assembly Version: 1.0.0.0<br/>
Win32 Version: 1.0.0.0<br/>
CodeBase: file:///D:/Users/Priya/Desktop/2012%20-DULIPRINT%20-%20Copy%20(15)/KJ%20-%20Print%20LOGO%20%20LIST%20VIEW%20TAB/WindowsApplication12/bin/Debug/Interop.OposPOSPrinter_CCO.DLL<br/>
----------------------------------------<br/>
<br/>
<br/>
************** JIT Debugging **************<br/>
To enable just-in-time (JIT) debugging, the .config file for this<br/>
application or computer (machine.config) must have the<br/>
jitDebugging value set in the system.windows.forms section.<br/>
The application must also be compiled with debugging<br/>
enabled.<br/>
<br/>
<br/>
For example:<br/>
<br/>
<br/>
<configuration><br/>
<system.windows.forms jitDebugging="true" /><br/>
</configuration><br/>
<br/>
<br/>
When JIT debugging is enabled, any unhandled exception<br/>
will be sent to the JIT debugger registered on the computer<br/>
rather than be handled by this dialog box.<br/>
<br/>
<br/>
<br/>
View the full article
instance of an object.)
See the end of this message for details on invoking <br/>
just-in-time (JIT) debugging instead of this dialog box.<br/>
<br/>
<br/>
************** Exception Text **************<br/>
System.NullReferenceException: Object reference not set to an instance of an object.<br/>
at WindowsApplication12.frmmain.frmmain_Load(Object sender, EventArgs e) in D:UsersPriyaDesktop2012 -DULIPRINT - Copy (15)KJ - Print LOGO LIST VIEW TABWindowsApplication12Form1.vb:line 235<br/>
at System.EventHandler.Invoke(Object sender, EventArgs e)<br/>
at System.Windows.Forms.Form.OnLoad(EventArgs e)<br/>
at System.Windows.Forms.Form.OnCreateControl()<br/>
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)<br/>
at System.Windows.Forms.Control.CreateControl()<br/>
at System.Windows.Forms.Control.WmShowWindow(Message& m)<br/>
at System.Windows.Forms.Control.WndProc(Message& m)<br/>
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)<br/>
at System.Windows.Forms.ContainerControl.WndProc(Message& m)<br/>
at System.Windows.Forms.Form.WmShowWindow(Message& m)<br/>
at System.Windows.Forms.Form.WndProc(Message& m)<br/>
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)<br/>
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)<br/>
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)<br/>
<br/>
<br/>
<br/>
<br/>
************** Loaded Assemblies **************<br/>
mscorlib<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>
CodeBase: file:///D:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll<br/>
----------------------------------------<br/>
WindowsApplication12<br/>
Assembly Version: 1.0.0.0<br/>
Win32 Version: 1.0.0.0<br/>
CodeBase: file:///D:/Users/Priya/Desktop/2012%20-DULIPRINT%20-%20Copy%20(15)/KJ%20-%20Print%20LOGO%20%20LIST%20VIEW%20TAB/WindowsApplication12/bin/Debug/WindowsApplication12.exe<br/>
----------------------------------------<br/>
Microsoft.VisualBasic<br/>
Assembly Version: 8.0.0.0<br/>
Win32 Version: 8.0.50727.4927 (NetFXspW7.050727-4900)<br/>
CodeBase: file:///D:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll<br/>
----------------------------------------<br/>
System<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>
CodeBase: file:///D:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll<br/>
----------------------------------------<br/>
System.Windows.Forms<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>
CodeBase: file:///D:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll<br/>
----------------------------------------<br/>
System.Drawing<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>
CodeBase: file:///D:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll<br/>
----------------------------------------<br/>
System.Configuration<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>
CodeBase: file:///D:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll<br/>
----------------------------------------<br/>
System.Xml<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>
CodeBase: file:///D:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll<br/>
----------------------------------------<br/>
System.Runtime.Remoting<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>
CodeBase: file:///D:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll<br/>
----------------------------------------<br/>
Microsoft.PointOfService<br/>
Assembly Version: 1.12.0.0<br/>
Win32 Version: 1.12.1296.00<br/>
CodeBase: file:///D:/Windows/assembly/GAC_MSIL/Microsoft.PointOfService/1.12.0.0__31bf3856ad364e35/Microsoft.PointOfService.dll<br/>
----------------------------------------<br/>
System.Data<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>
CodeBase: file:///D:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll<br/>
----------------------------------------<br/>
Microsoft.VisualBasic.PowerPacks.Vs<br/>
Assembly Version: 10.0.0.0<br/>
Win32 Version: 10.0.30319.1<br/>
CodeBase: file:///D:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic.PowerPacks.Vs/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.PowerPacks.Vs.dll<br/>
----------------------------------------<br/>
AxInterop.OposPOSPrinter_CCO<br/>
Assembly Version: 1.0.0.0<br/>
Win32 Version: 1.0.0.0<br/>
CodeBase: file:///D:/Users/Priya/Desktop/2012%20-DULIPRINT%20-%20Copy%20(15)/KJ%20-%20Print%20LOGO%20%20LIST%20VIEW%20TAB/WindowsApplication12/bin/Debug/AxInterop.OposPOSPrinter_CCO.DLL<br/>
----------------------------------------<br/>
System.Transactions<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>
CodeBase: file:///D:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll<br/>
----------------------------------------<br/>
System.EnterpriseServices<br/>
Assembly Version: 2.0.0.0<br/>
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)<br/>
CodeBase: file:///D:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll<br/>
----------------------------------------<br/>
Interop.OposPOSPrinter_CCO<br/>
Assembly Version: 1.0.0.0<br/>
Win32 Version: 1.0.0.0<br/>
CodeBase: file:///D:/Users/Priya/Desktop/2012%20-DULIPRINT%20-%20Copy%20(15)/KJ%20-%20Print%20LOGO%20%20LIST%20VIEW%20TAB/WindowsApplication12/bin/Debug/Interop.OposPOSPrinter_CCO.DLL<br/>
----------------------------------------<br/>
<br/>
<br/>
************** JIT Debugging **************<br/>
To enable just-in-time (JIT) debugging, the .config file for this<br/>
application or computer (machine.config) must have the<br/>
jitDebugging value set in the system.windows.forms section.<br/>
The application must also be compiled with debugging<br/>
enabled.<br/>
<br/>
<br/>
For example:<br/>
<br/>
<br/>
<configuration><br/>
<system.windows.forms jitDebugging="true" /><br/>
</configuration><br/>
<br/>
<br/>
When JIT debugging is enabled, any unhandled exception<br/>
will be sent to the JIT debugger registered on the computer<br/>
rather than be handled by this dialog box.<br/>
<br/>
<br/>
<br/>
View the full article