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?
Loading
Sam HobbsPosted Jan 20, 2012, 1:32 PM
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.