T
T
Turtle_Onni2016-11-21 21:10:16
C++ / C#
Turtle_Onni, 2016-11-21 21:10:16

How to fix the error Object reference does not point to an instance of an object?

Hello!
Once again, I'm asking for help!
The error "Object reference does not point to an instance of an object" is thrown.
But drops out only from the working server.
I went through the debugging locally, there is no error, nothing that could be Null either.
What could be the problem? Or how else can I see the error in more detail? What other information can you provide for expedited assistance?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Kovalsky, 2016-11-21
@dmitryKovalskiy

Install nlog and log every line of program execution. see which one it fell on. At the same time, you can log the state of objects.

A
Andrew, 2016-11-21
@impwx

You can connect to the server with a remote debugger and check the "Break on exceptions" checkbox. To do this, the application must be built in the Debug configuration, and you must have the sources.
With web applications and sites inside IIS, it is very simple, with a classic application it will be more difficult, but also possible.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question