I am trying to debug an error on a C#.net 2008 desktop application. For some autogenerated code that was created when working with an .xsd, an error is occuring on a fill statement to a dataset. I know the error occurs here since I am stepping through the code and the debugger ends up on a catch statement that uses the autogenerated code.
Thus I am trying to determine how to find out what the error is. Can I put a try catch block in the auto generated code. What would you suggest I try?
Debug C# 2008 autogenerated code
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Sam HobbsRank #107 · 20.5K reputationPosted Jan 20, 2012, 8:32 AM EST
I would read the error message; have you tried doing that?
I would also look at the data that the genrated code is using; there is likely a problem with it. I would look at the code that is not generated that is using the generated code, and ensure that there are not any errors that are being ignored.