By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,473 Members | 3,657 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,473 IT Pros & Developers. It's quick & easy.

Object reference not set to an instance of an object error

P: n/a
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
Share this Question
Share on Google+
9 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.