Community
Showing results for 
Search instead for 
Do you mean 
Reply

Debug Object reference not set to an instance of an object

Nickel Elite Contributor
Posts: 508
Country: USA

Debug Object reference not set to an instance of an object

[ Edited ]

*** never mind, I found it through putting MessageBox.Show statements virtually on every line to find out what was failing. However, a better way to debug on a remote machine would be nice to know.  Thanks *** 

 

I've setup trace loggin through a config file, but am not getting as much information as I had hoped. Basically, in the application a window is popping up stating:

 

Object reference not set to an instance of an object.

 

And the trace log has these lines:

 

Error Exception: Object reference not set to an instance of an object.System.NullReferenceException: Object reference not set to an instance of an object.

 

What I'm trying to do is create a contact then populate fields with their information.  How do I find out which object is causing this? Thanks...

 

p.s. this error does not happen on my machine where I am developing this, just every other machine in the universe

 

 

Message Edited by rbrust on 10-28-2009 08:13 AM
Message Edited by rbrust on 10-28-2009 10:55 AM
Richard Brust
ACT! Certified Consultant
richard@rbrDataSolutions.com