c# - Object reference not set -


I have an asp.net-C # web app, in which all 4-5 connected projects are written in C # . I'm using 3.5 .NET 3.5.

My problem is, when I try to run my application with the solution, it shows an error:

"Error 17 object reference not an example of an object "

When I create / reconstruct the solution, it will end when I click on the error, then I do not take any space and another interesting point No location specified for error Land.

Please help.

An error means that some object is empty, and you call a method or someone on it Attempt to access the property. For example, this code will give the same error message:

  string myString = null; Int length = myString.Length; / /   

If you do not know where, and there is no stack trace for any reason, try adding an attempt / catch block around the code you think is suspicious And see whether the error is or not.

Another solution is to add only one breakpoints, and it is known through its code line without any lines.

Without further explanation, this is the best advice I can give you.

Comments