Failed to generate code while converting from .Net 2003 to 2005

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I received an error while converting a windows application from .Net 2003 to
..Net 2005. The followinf error occurred in a dataset that was automatically
generated:
Error 18 Custom tool error: Failed to generate code. Unable to convert input
xml file content to a DataSet. The following text is not allowed in this
context: '
//'. The following text is not allowed in this context: '
//'. C:\DocMgmtTest\dataset1.xsd 1 1 DocMgmtTest
 
This is a long about way to try and rectify, but an idea:

Get an xml file that is an example of your strong dataset.
Use the XSD tool (command line) to create an xsd of that xml file. Use the
2005(2.0) version of the tool.
Create a blank dataset (strong) in your 2005 project.
Open the .xsd file in notepad.
Copy the results from above (xsd output) into the notepad opened xsd file.
Save the file, go back to 2005.

See if that might work.
 
Back
Top