|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Object reference not set to an instance of an object errorI keep getting Object reference not set to an instance of an object error when trying to run my application on an installed client machine. I installed it on several others and it runs fine.
I tried installing .Net framework 1.1 on the clients machine that is getting the error but the error remains. Can anyone provide help? Thanks. No, we can't provide help.
We have no idea where the error is happening, because you haven't told us. You have provided no code, no details, nothing. That error could be due to any number of things, and unless we have a lot more information, no one is going to be able to tell you why. "bill" <wbea***@prodigy.net> wrote in message news:W2emg.69950$4L1.58978@newssvr11.news.prodigy.com... I keep getting Object reference not set to an instance of an object error when trying to run my application on an installed client machine. I installed it on several others and it runs fine.I tried installing .Net framework 1.1 on the clients machine that is getting the error but the error remains. Can anyone provide help? Thanks. See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at FactsImport.Form1.Button1_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.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.2032 CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll ---------------------------------------- FactsImport Assembly Version: 1.0.2362.18225 Win32 Version: 1.0.2362.18225 CodeBase: file:///C:/DataImport/FactsImport.exe ---------------------------------------- System.Windows.Forms Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.2032 CodeBase: file:///c:/windows/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.2032 CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll ---------------------------------------- System.Drawing Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.2032 CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll ---------------------------------------- Interop.DTS Assembly Version: 2.0.0.0 Win32 Version: 2.0.0.0 CodeBase: file:///C:/DataImport/Interop.DTS.DLL ---------------------------------------- Microsoft.VisualBasic Assembly Version: 7.0.5000.0 Win32 Version: 7.10.6001.4 CodeBase: file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.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: <configuration> <system.windows.forms jitDebugging="true" /> </configuration> 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. "Marina Levit [MVP]" <someone@nospam.com> wrote in message news:%23Hw3r2UlGHA.3740@TK2MSFTNGP02.phx.gbl... No, we can't provide help.We have no idea where the error is happening, because you haven't told us. You have provided no code, no details, nothing. That error could be due to any number of things, and unless we have a lot more information, no one is going to be able to tell you why. "bill" <wbea***@prodigy.net> wrote in message news:W2emg.69950$4L1.58978@newssvr11.news.prodigy.com... I keep getting Object reference not set to an instance of an object error when trying to run my application on an installed client machine. I installed it on several others and it runs fine.I tried installing .Net framework 1.1 on the clients machine that is getting the error but the error remains. Can anyone provide help? Thanks. There is something wrong with the code you have in Button1_Click. Since you didn't post it it's hard to say.
But somewhere in there, your code is crashing because it is expecting an object, and one isn't there. "bill" <wbea***@prodigy.net> wrote in message news:s2fmg.54971$Lm5.18274@newssvr12.news.prodigy.com... See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at FactsImport.Form1.Button1_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.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.2032 CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll ---------------------------------------- FactsImport Assembly Version: 1.0.2362.18225 Win32 Version: 1.0.2362.18225 CodeBase: file:///C:/DataImport/FactsImport.exe ---------------------------------------- System.Windows.Forms Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.2032 CodeBase: file:///c:/windows/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.2032 CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll ---------------------------------------- System.Drawing Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.2032 CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll ---------------------------------------- Interop.DTS Assembly Version: 2.0.0.0 Win32 Version: 2.0.0.0 CodeBase: file:///C:/DataImport/Interop.DTS.DLL ---------------------------------------- Microsoft.VisualBasic Assembly Version: 7.0.5000.0 Win32 Version: 7.10.6001.4 CodeBase: file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.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: <configuration> <system.windows.forms jitDebugging="true" /> </configuration> 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. "Marina Levit [MVP]" <someone@nospam.com> wrote in message news:%23Hw3r2UlGHA.3740@TK2MSFTNGP02.phx.gbl... No, we can't provide help.We have no idea where the error is happening, because you haven't told us. You have provided no code, no details, nothing. That error could be due to any number of things, and unless we have a lot more information, no one is going to be able to tell you why. "bill" <wbea***@prodigy.net> wrote in message news:W2emg.69950$4L1.58978@newssvr11.news.prodigy.com... I keep getting Object reference not set to an instance of an object error when trying to run my application on an installed client machine. I installed it on several others and it runs fine.I tried installing .Net framework 1.1 on the clients machine that is getting the error but the error remains. Can anyone provide help? Thanks. That's funny. The application works fine on my machine and another machine it's installed on.
"Marina Levit [MVP]" <someone@nospam.com> wrote in message news:%23TpA4YVlGHA.3336@TK2MSFTNGP05.phx.gbl... There is something wrong with the code you have in Button1_Click. Since you didn't post it it's hard to say.But somewhere in there, your code is crashing because it is expecting an object, and one isn't there. "bill" <wbea***@prodigy.net> wrote in message news:s2fmg.54971$Lm5.18274@newssvr12.news.prodigy.com... See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at FactsImport.Form1.Button1_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.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.2032 CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll ---------------------------------------- FactsImport Assembly Version: 1.0.2362.18225 Win32 Version: 1.0.2362.18225 CodeBase: file:///C:/DataImport/FactsImport.exe ---------------------------------------- System.Windows.Forms Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.2032 CodeBase: file:///c:/windows/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.2032 CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll ---------------------------------------- System.Drawing Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.2032 CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll ---------------------------------------- Interop.DTS Assembly Version: 2.0.0.0 Win32 Version: 2.0.0.0 CodeBase: file:///C:/DataImport/Interop.DTS.DLL ---------------------------------------- Microsoft.VisualBasic Assembly Version: 7.0.5000.0 Win32 Version: 7.10.6001.4 CodeBase: file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.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: <configuration> <system.windows.forms jitDebugging="true" /> </configuration> 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. "Marina Levit [MVP]" <someone@nospam.com> wrote in message news:%23Hw3r2UlGHA.3740@TK2MSFTNGP02.phx.gbl... No, we can't provide help.We have no idea where the error is happening, because you haven't told us. You have provided no code, no details, nothing. That error could be due to any number of things, and unless we have a lot more information, no one is going to be able to tell you why. "bill" <wbea***@prodigy.net> wrote in message news:W2emg.69950$4L1.58978@newssvr11.news.prodigy.com... I keep getting Object reference not set to an instance of an object error when trying to run my application on an installed client machine. I installed it on several others and it runs fine.I tried installing .Net framework 1.1 on the clients machine that is getting the error but the error remains. Can anyone provide help? Thanks. Are you creating any objects in Button1_Click? Do you have any error checking in the procedure? Are you checking that the object is not Nothing before using it? You may have a dependency that exists on some machines and not on others. Perhaps your install package is not complete. Without seeing code there is nothing else I can suggest other than to test each object for Nothing before using it and if it is Nothing show a message box with some info that will help you track down the cause.
-- Al Reid "bill" <wbea***@prodigy.net> wrote in message news:Gtfmg.55008$Lm5.10301@newssvr12.news.prodigy.com... That's funny. The application works fine on my machine and another machine it's installed on. "Marina Levit [MVP]" <someone@nospam.com> wrote in message news:%23TpA4YVlGHA.3336@TK2MSFTNGP05.phx.gbl... There is something wrong with the code you have in Button1_Click. Since you didn't post it it's hard to say.But somewhere in there, your code is crashing because it is expecting an object, and one isn't there. "bill" <wbea***@prodigy.net> wrote in message news:s2fmg.54971$Lm5.18274@newssvr12.news.prodigy.com... See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at FactsImport.Form1.Button1_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.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.2032 CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll ---------------------------------------- FactsImport Assembly Version: 1.0.2362.18225 Win32 Version: 1.0.2362.18225 CodeBase: file:///C:/DataImport/FactsImport.exe ---------------------------------------- System.Windows.Forms Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.2032 CodeBase: file:///c:/windows/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.2032 CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll ---------------------------------------- System.Drawing Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.2032 CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll ---------------------------------------- Interop.DTS Assembly Version: 2.0.0.0 Win32 Version: 2.0.0.0 CodeBase: file:///C:/DataImport/Interop.DTS.DLL ---------------------------------------- Microsoft.VisualBasic Assembly Version: 7.0.5000.0 Win32 Version: 7.10.6001.4 CodeBase: file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.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: <configuration> <system.windows.forms jitDebugging="true" /> </configuration> 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. "Marina Levit [MVP]" <someone@nospam.com> wrote in message news:%23Hw3r2UlGHA.3740@TK2MSFTNGP02.phx.gbl... No, we can't provide help.We have no idea where the error is happening, because you haven't told us. You have provided no code, no details, nothing. That error could be due to any number of things, and unless we have a lot more information, no one is going to be able to tell you why. "bill" <wbea***@prodigy.net> wrote in message news:W2emg.69950$4L1.58978@newssvr11.news.prodigy.com... I keep getting Object reference not set to an instance of an object error when trying to run my application on an installed client machine. I installed it on several others and it runs fine.I tried installing .Net framework 1.1 on the clients machine that is getting the error but the error remains. Can anyone provide help? Thanks. That doesn't mean anything. Software often works on one machine but not on another because of an environment difference, etc.
Like I said, you didn't post the code, so we can't possibly know what is going on. "bill" <wbea***@prodigy.net> wrote in message news:Gtfmg.55008$Lm5.10301@newssvr12.news.prodigy.com... That's funny. The application works fine on my machine and another machine it's installed on. "Marina Levit [MVP]" <someone@nospam.com> wrote in message news:%23TpA4YVlGHA.3336@TK2MSFTNGP05.phx.gbl... There is something wrong with the code you have in Button1_Click. Since you didn't post it it's hard to say.But somewhere in there, your code is crashing because it is expecting an object, and one isn't there. "bill" <wbea***@prodigy.net> wrote in message news:s2fmg.54971$Lm5.18274@newssvr12.news.prodigy.com... See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at FactsImport.Form1.Button1_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.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.2032 CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll ---------------------------------------- FactsImport Assembly Version: 1.0.2362.18225 Win32 Version: 1.0.2362.18225 CodeBase: file:///C:/DataImport/FactsImport.exe ---------------------------------------- System.Windows.Forms Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.2032 CodeBase: file:///c:/windows/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.2032 CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll ---------------------------------------- System.Drawing Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.2032 CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll ---------------------------------------- Interop.DTS Assembly Version: 2.0.0.0 Win32 Version: 2.0.0.0 CodeBase: file:///C:/DataImport/Interop.DTS.DLL ---------------------------------------- Microsoft.VisualBasic Assembly Version: 7.0.5000.0 Win32 Version: 7.10.6001.4 CodeBase: file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.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: <configuration> <system.windows.forms jitDebugging="true" /> </configuration> 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. "Marina Levit [MVP]" <someone@nospam.com> wrote in message news:%23Hw3r2UlGHA.3740@TK2MSFTNGP02.phx.gbl... No, we can't provide help.We have no idea where the error is happening, because you haven't told us. You have provided no code, no details, nothing. That error could be due to any number of things, and unless we have a lot more information, no one is going to be able to tell you why. "bill" <wbea***@prodigy.net> wrote in message news:W2emg.69950$4L1.58978@newssvr11.news.prodigy.com... I keep getting Object reference not set to an instance of an object error when trying to run my application on an installed client machine. I installed it on several others and it runs fine.I tried installing .Net framework 1.1 on the clients machine that is getting the error but the error remains. Can anyone provide help? Thanks. Bill,
Are you sure that you have Option Strict On in top of your code page. That prevent binding at runtime. (As far as you are not using remoting what is the same) Cor "bill" <wbea***@prodigy.net> schreef in bericht news:Gtfmg.55008$Lm5.10301@newssvr12.news.prodigy.com... That's funny. The application works fine on my machine and another machine it's installed on. "Marina Levit [MVP]" <someone@nospam.com> wrote in message news:%23TpA4YVlGHA.3336@TK2MSFTNGP05.phx.gbl... There is something wrong with the code you have in Button1_Click. Since you didn't post it it's hard to say.But somewhere in there, your code is crashing because it is expecting an object, and one isn't there. "bill" <wbea***@prodigy.net> wrote in message news:s2fmg.54971$Lm5.18274@newssvr12.news.prodigy.com... See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at FactsImport.Form1.Button1_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.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.2032 CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll ---------------------------------------- FactsImport Assembly Version: 1.0.2362.18225 Win32 Version: 1.0.2362.18225 CodeBase: file:///C:/DataImport/FactsImport.exe ---------------------------------------- System.Windows.Forms Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.2032 CodeBase: file:///c:/windows/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.2032 CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll ---------------------------------------- System.Drawing Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.2032 CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll ---------------------------------------- Interop.DTS Assembly Version: 2.0.0.0 Win32 Version: 2.0.0.0 CodeBase: file:///C:/DataImport/Interop.DTS.DLL ---------------------------------------- Microsoft.VisualBasic Assembly Version: 7.0.5000.0 Win32 Version: 7.10.6001.4 CodeBase: file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.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: <configuration> <system.windows.forms jitDebugging="true" /> </configuration> 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. "Marina Levit [MVP]" <someone@nospam.com> wrote in message news:%23Hw3r2UlGHA.3740@TK2MSFTNGP02.phx.gbl... No, we can't provide help.We have no idea where the error is happening, because you haven't told us. You have provided no code, no details, nothing. That error could be due to any number of things, and unless we have a lot more information, no one is going to be able to tell you why. "bill" <wbea***@prodigy.net> wrote in message news:W2emg.69950$4L1.58978@newssvr11.news.prodigy.com... I keep getting Object reference not set to an instance of an object error when trying to run my application on an installed client machine. I installed it on several others and it runs fine.I tried installing .Net framework 1.1 on the clients machine that is getting the error but the error remains. Can anyone provide help? Thanks. You might try putting error trapping code in for Button1. Something like this:
Try {all your button1 code} Catch Ex as Exception Msgbox(ex.Message + vbNewLine + "in: " + ex.StackTrace) end try The stack trace portion will tell you the line your error is happening on. Note you may have to select the All tab at the bottom of your intellisense to see the Stacktrace option. P.S. You might be able to highlight your code, right click, and select "surround with..." to put the try/catch in quickly. Refactor might be needed for this. Thanks to all that responded. I found a solution although it would be
better to have this resolved in the deploy package. The application executes a DTS package in a SQL Server environment. I discovered that the machines it worked on have SQL Enterprise Manager installed. So, I installed EM on a machine it didn't work on, then removed EM, leaving the DLLs. Now the application works fine. Show quoteHide quote "Zloth" <Zloth@noemail.noemail> wrote in message news:9CF0699E-292D-4DA3-A056-6187CC8B5072@microsoft.com... > You might try putting error trapping code in for Button1. Something like > this: > > Try > {all your button1 code} > Catch Ex as Exception > Msgbox(ex.Message + vbNewLine + "in: " + ex.StackTrace) > end try > > The stack trace portion will tell you the line your error is happening on. > Note you may have to select the All tab at the bottom of your intellisense > to > see the Stacktrace option. > > P.S. You might be able to highlight your code, right click, and select > "surround with..." to put the try/catch in quickly. Refactor might be > needed > for this. |
|||||||||||||||||||||||