Object reference not set to an instance of an object.
Null Reference Exception:
In simple words this error means that you are trying to use a reference of an object which is "null".
Means, you haven't initialize it. If you have to use any object you have to initialize it.
This is a RUN TIME exception.
Null Reference Exception:
In simple words this error means that you are trying to use a reference of an object which is "null".
Means, you haven't initialize it. If you have to use any object you have to initialize it.
This is a RUN TIME exception.