HELP - Object reference not set to an instance of an object - What

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Using Visual Studio .Net "trying" to build a data driven web site on XP-Pro.
Application was working, but after some code changes I get:
Object reference not set to an instance of an object.
HOW can I tell which Object is causing the problem? Would it be terribly
hard for the error message to indicate which Object -or- at least the first
bad Object. I have commented out all of my new code changes and still get
the error. I have tried running the debugger with a breakpoint in the
PageLoad and in the btn_Clicked in the page that is active when the error
occurs - but, the debugger never stops at the breakpoints?
Thanks in advance,
Paul
 
When I've had such wierd problems, I always do a 'Rebuild Solution' and look
at the compiler output carefully for any warning messages. Sometimes assemby
mismatches could cause this problem. Also doing the 'Rebuild' clears out
everything and builds it from scratch. I can tell you for sure that has
helped me atleast a couple of times.

Best of luck

Sujit D'Mello
 
Back
Top