Click here to Skip to main content
16,017,650 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
whenever this error message come in Asp.net with c#?
Object reference not set to an instance of an object
Posted

1 solution

This exception/error is thrown whenever you declare a variable or an object but did not initialize it properly.

So always remembers to initialize the variables along with declaration to avoid such type of errors.


Hope it will help.


Regards,

:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900