473,395 Members | 1,905 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Object reference not set to an instance of an object error

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.
Jun 21 '06 #1
9 4535
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" <wb*****@prodigy.net> wrote in message news:W2*******************@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.
Jun 21 '06 #2
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(MouseEventAr gs 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(M essage& 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]" <so*****@nospam.com> wrote in message news:%2****************@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" <wb*****@prodigy.net> wrote in message news:W2*******************@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.
Jun 21 '06 #3
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" <wb*****@prodigy.net> wrote in message news:s2*******************@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(MouseEventAr gs 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(M essage& 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]" <so*****@nospam.com> wrote in message news:%2****************@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" <wb*****@prodigy.net> wrote in message news:W2*******************@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.
Jun 21 '06 #4
That's funny. The application works fine on my machine and another machine it's installed on.

"Marina Levit [MVP]" <so*****@nospam.com> wrote in message news:%2****************@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" <wb*****@prodigy.net> wrote in message news:s2*******************@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(MouseEventAr gs 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(M essage& 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]" <so*****@nospam.com> wrote in message news:%2****************@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" <wb*****@prodigy.net> wrote in message news:W2*******************@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.
Jun 21 '06 #5
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.
Jun 21 '06 #6
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" <wb*****@prodigy.net> wrote in message news:Gt*******************@newssvr12.news.prodigy. com...
That's funny. The application works fine on my machine and another machine it's installed on.

"Marina Levit [MVP]" <so*****@nospam.com> wrote in message news:%2****************@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" <wb*****@prodigy.net> wrote in message news:s2*******************@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(MouseEventAr gs 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(M essage& 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]" <so*****@nospam.com> wrote in message news:%2****************@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" <wb*****@prodigy.net> wrote in message news:W2*******************@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.
Jun 21 '06 #7
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" <wb*****@prodigy.net> wrote in message news:Gt*******************@newssvr12.news.prodigy. com...
That's funny. The application works fine on my machine and another machine it's installed on.

"Marina Levit [MVP]" <so*****@nospam.com> wrote in message news:%2****************@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" <wb*****@prodigy.net> wrote in message news:s2*******************@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(MouseEventAr gs 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(M essage& 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]" <so*****@nospam.com> wrote in message news:%2****************@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" <wb*****@prodigy.net> wrote in message news:W2*******************@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.
Jun 21 '06 #8
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" <wb*****@prodigy.net> schreef in bericht news:Gt*******************@newssvr12.news.prodigy. com...
That's funny. The application works fine on my machine and another machine it's installed on.

"Marina Levit [MVP]" <so*****@nospam.com> wrote in message news:%2****************@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" <wb*****@prodigy.net> wrote in message news:s2*******************@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(MouseEventAr gs 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(M essage& 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]" <so*****@nospam.com> wrote in message news:%2****************@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" <wb*****@prodigy.net> wrote in message news:W2*******************@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.
Jun 21 '06 #9
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.
"Zloth" <Zl***@noemail.noemail> wrote in message
news:9C**********************************@microsof t.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.

Jun 21 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Pkpatel | last post by:
Hi, I keep getting this error every time I try to load crystalreportviewer on a webform with a dataset. Here is the error: -------------------------------------------------------- Server...
15
by: Carlos Lozano | last post by:
Hi, What is the right way to create an OCX COM component. The component is already registerred, but can't create an instance. I am using the reference to the interop module created. If I use...
6
by: blash | last post by:
Can someone help me? I really don't have a clue. My company staff told me they often got such error: "Object reference not set to an instance of an object." when they are in search result page...
3
by: nemo | last post by:
Hi, My application works fine on the localhost but spits this error as soon as I put it on the server. I know this error occurs when an object has not been instantiated prior to a reference, but...
3
by: Adam | last post by:
We have a web site that uses .vb for the web pages and .cs for a class module. We are getting the error in .NET 2.0 and VS 2005 beta 2. It does work with .NET 1.1. When trying to access a page...
7
by: Brett | last post by:
I'm not sure why I keep getting this error, "Object reference not set to an instance of an object". Private Function somefunction() as string Dim MyCurrentClass As New Class1 Try For i As...
4
by: Luke Matuszewski | last post by:
Here are some questions that i am interested about and wanted to here an explanation/discussion: 1. (general) Is the objectness in JavaScript was supported from the very first version of it (in...
0
by: cnSoftware | last post by:
I come across this problem during my recent project and even now I am still be puzzled by it. So I paste the procedure here. I wish you can figure out where I am wrong or missing. The sample...
12
by: Andrew Poulos | last post by:
With the following code I can't understand why this.num keeps incrementing each time I create a new instance of Foo. For each instance I'm expecting this.num to alert as 1 but keeps incrementing. ...
2
by: Ralph | last post by:
Hi I don't understand why it's not working: function schedule(imTop){ this.tdImagesTop = imTop; } schedule.prototype.selectEl = function() { alert(this.tdImagesTop);
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.