Last post Nov 23, 2018 05:28 AM by raghav_khunger
Nov 22, 2018 02:55 PM|VartanCode|LINK
Nov 22, 2018 05:15 PM|DA924|LINK
While generating the tableadapter in the configuration wizard, I got a warning :Object Reference not set to an instance of an object in the final step and fail to generate the tableadpater obviously.
That's not a warning, a waning would not terminate the program. It's an exception error message and the program is being terminated. A class is instanced into an object that lives in memory. When code tries to access an object that has not been instanced
that lives in memory, then you'll get the error message you are getting.
You are using Mr. Wizard to do it for you that stunts your learning on how to do it yourself manually. And you don't know what Mr. Wizard has gone wrong. You should learn how to make the tableadpater manually yourself in code.
Nov 23, 2018 05:28 AM|raghav_khunger|LINK
That error comes when you perform any operation on an object which is null.
For example, suppose if you are doing obj.ToString() and if obj is null then that error will come, so please debug your code and debug it line by line and see where it is causing that error.