Object reference not set to an instance of an object error
(mods, you might want to make this a sticky)
Considering the large number of "Object reference not set to an instance of an object" errors abound, I figured its my "public duty" to give the main reasons, and thus... reduce the number of superflous threads created on the matter:
Cause one:
Not declaring variables!
Yes, I know it sounds obvious, but MAKE SURE that you've explicity declared the variable, and don't forget to use the appropriate scope!
One common mistayke is when working with Codebehind Classes, consider:
View Full Details...............................
No comments:
Post a Comment