473,883 Members | 1,589 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4559
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*****@prodig y.net> wrote in message news:W2******** ***********@new ssvr11.news.pro digy.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.NullRefe renceException: Object reference not set to an instance of an object.
at FactsImport.For m1.Button1_Clic k(Object sender, EventArgs e)
at System.Windows. Forms.Control.O nClick(EventArg s e)
at System.Windows. Forms.Button.On Click(EventArgs e)
at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons button, Int32 clicks)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
at System.Windows. Forms.Button.Wn dProc(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr 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__b77 a5c561934e089/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__b77 a5c561934e089/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__b03 f5f7f11d50a3a/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.Visua lBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.6001.4
CodeBase: file:///c:/windows/assembly/gac/microsoft.visua lbasic/7.0.5000.0__b03 f5f7f11d50a3a/microsoft.visua lbasic.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:

<configuratio n>
<system.windows .forms jitDebugging="t rue" />
</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******** ********@TK2MSF TNGP02.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*****@prodig y.net> wrote in message news:W2******** ***********@new ssvr11.news.pro digy.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*****@prodig y.net> wrote in message news:s2******** ***********@new ssvr12.news.pro digy.com...
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullRefe renceException: Object reference not set to an instance of an object.
at FactsImport.For m1.Button1_Clic k(Object sender, EventArgs e)
at System.Windows. Forms.Control.O nClick(EventArg s e)
at System.Windows. Forms.Button.On Click(EventArgs e)
at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons button, Int32 clicks)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
at System.Windows. Forms.Button.Wn dProc(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr 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__b77 a5c561934e089/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__b77 a5c561934e089/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__b03 f5f7f11d50a3a/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.Visua lBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.6001.4
CodeBase: file:///c:/windows/assembly/gac/microsoft.visua lbasic/7.0.5000.0__b03 f5f7f11d50a3a/microsoft.visua lbasic.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:

<configuratio n>
<system.windows .forms jitDebugging="t rue" />
</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******** ********@TK2MSF TNGP02.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*****@prodig y.net> wrote in message news:W2******** ***********@new ssvr11.news.pro digy.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******** ********@TK2MSF TNGP05.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*****@prodig y.net> wrote in message news:s2******** ***********@new ssvr12.news.pro digy.com...
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullRefe renceException: Object reference not set to an instance of an object.
at FactsImport.For m1.Button1_Clic k(Object sender, EventArgs e)
at System.Windows. Forms.Control.O nClick(EventArg s e)
at System.Windows. Forms.Button.On Click(EventArgs e)
at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons button, Int32 clicks)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
at System.Windows. Forms.Button.Wn dProc(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr 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__b77 a5c561934e089/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__b77 a5c561934e089/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__b03 f5f7f11d50a3a/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.Visua lBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.6001.4
CodeBase: file:///c:/windows/assembly/gac/microsoft.visua lbasic/7.0.5000.0__b03 f5f7f11d50a3a/microsoft.visua lbasic.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:

<configuratio n>
<system.windows .forms jitDebugging="t rue" />
</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******** ********@TK2MSF TNGP02.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*****@prodig y.net> wrote in message news:W2******** ***********@new ssvr11.news.pro digy.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.Messa ge + 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*****@prodig y.net> wrote in message news:Gt******** ***********@new ssvr12.news.pro digy.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******** ********@TK2MSF TNGP05.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*****@prodig y.net> wrote in message news:s2******** ***********@new ssvr12.news.pro digy.com...
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullRefe renceException: Object reference not set to an instance of an object.
at FactsImport.For m1.Button1_Clic k(Object sender, EventArgs e)
at System.Windows. Forms.Control.O nClick(EventArg s e)
at System.Windows. Forms.Button.On Click(EventArgs e)
at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons button, Int32 clicks)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
at System.Windows. Forms.Button.Wn dProc(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr 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__b77 a5c561934e089/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__b77 a5c561934e089/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__b03 f5f7f11d50a3a/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.Visua lBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.6001.4
CodeBase: file:///c:/windows/assembly/gac/microsoft.visua lbasic/7.0.5000.0__b03 f5f7f11d50a3a/microsoft.visua lbasic.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:

<configuratio n>
<system.windows .forms jitDebugging="t rue" />
</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******** ********@TK2MSF TNGP02.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*****@prodig y.net> wrote in message news:W2******** ***********@new ssvr11.news.pro digy.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*****@prodig y.net> wrote in message news:Gt******** ***********@new ssvr12.news.pro digy.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******** ********@TK2MSF TNGP05.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*****@prodig y.net> wrote in message news:s2******** ***********@new ssvr12.news.pro digy.com...
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullRefe renceException: Object reference not set to an instance of an object.
at FactsImport.For m1.Button1_Clic k(Object sender, EventArgs e)
at System.Windows. Forms.Control.O nClick(EventArg s e)
at System.Windows. Forms.Button.On Click(EventArgs e)
at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons button, Int32 clicks)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
at System.Windows. Forms.Button.Wn dProc(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr 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__b77 a5c561934e089/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__b77 a5c561934e089/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__b03 f5f7f11d50a3a/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.Visua lBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.6001.4
CodeBase: file:///c:/windows/assembly/gac/microsoft.visua lbasic/7.0.5000.0__b03 f5f7f11d50a3a/microsoft.visua lbasic.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:

<configuratio n>
<system.windows .forms jitDebugging="t rue" />
</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******** ********@TK2MSF TNGP02.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*****@prodig y.net> wrote in message news:W2******** ***********@new ssvr11.news.pro digy.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*****@prodig y.net> schreef in bericht news:Gt******** ***********@new ssvr12.news.pro digy.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******** ********@TK2MSF TNGP05.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*****@prodig y.net> wrote in message news:s2******** ***********@new ssvr12.news.pro digy.com...
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullRefe renceException: Object reference not set to an instance of an object.
at FactsImport.For m1.Button1_Clic k(Object sender, EventArgs e)
at System.Windows. Forms.Control.O nClick(EventArg s e)
at System.Windows. Forms.Button.On Click(EventArgs e)
at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons button, Int32 clicks)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
at System.Windows. Forms.Button.Wn dProc(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr 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__b77 a5c561934e089/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__b77 a5c561934e089/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__b03 f5f7f11d50a3a/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.Visua lBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.6001.4
CodeBase: file:///c:/windows/assembly/gac/microsoft.visua lbasic/7.0.5000.0__b03 f5f7f11d50a3a/microsoft.visua lbasic.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:

<configuratio n>
<system.windows .forms jitDebugging="t rue" />
</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******** ********@TK2MSF TNGP02.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*****@prodig y.net> wrote in message news:W2******** ***********@new ssvr11.news.pro digy.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******** *************** ***********@mic rosoft.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.Messa ge + 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
10551
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 Error in '/Cr_Dataset' Application. ----------------------------------------------------------- ---------------------
15
6756
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 javascript or vbscript it works. I will appreciate any help. I do the following (C#):
6
6133
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 then tried to access 2nd, or 3rd, etc page. The problem is it happens sometimes - sometimes when they clicked refresh button, then everything is ok. Now they told me it happens more frequently. but I have tried by myself many times and never got...
3
455
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 why shouldn't it happen in the localhost? Here's what the the whole error msg looks like:
3
4239
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 that needs the class module I get an error on web site: Object reference not set to an instance of an object Here is where the error is:
7
1576
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 Integer = 0 To LinkResults.Length - 1 With MyCurrentClass.SqlCmd_Insert_LinkVB .CommandType = System.Data.CommandType.StoredProcedure
4
1890
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 browsers) ? What about the new syntax of creating a object using { 'propName1':'propValue1', 'propName2':'propValue2', 'propName3':{ /* another object */ } } - from what version of JScript/JavaScript it was supported (from what browsers versions) ?...
0
1880
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 application is developed with VS 2005 Beta 2. 1. Create a base class named ¡°BaseEntity¡±
12
5564
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. Foo = function(type) { this.num = 0; this.type = type this.trigger(); } Foo.prototype.trigger = function() {
2
2664
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
9793
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10750
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10858
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10419
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9577
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7974
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5804
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5996
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4619
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.