I have problem with generating designer.cs code from datatable in VS 2008. I open SQL CE 3.5 database in server explorer and drag database table into designer and I get this error message:
Custom tool error: Failed to generate code. Object reference not set to an instance of an object.
When I right click on the dataset1.xsd a click on "Run custom tool", then I get this message:
The custom tool 'MSDataSetGenerator' failed. Object reference not set to an instance object
Have anyone this problem? Do you have tips for solve this problem? Some days ago, it worked correctly.
Open xsd file as xml and check connection on the top of file. If connection is wrong it generates nad throws similar error. Just remove all connections from connection node on the top of xsd file.