none
DataSet Questions RRS feed

  • Question

  • I'm wondering if there is a way to compile a dataset into the main project dll.  I create a dataset through the Add New function, drag a table onto the form from the server explorer, set the build action property to compile but everytime I try to build it throws an error stating:

     

    Error 1 A namespace does not directly contain members such as fields or methods C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\DataSet2Test\DataSet2Test\Test.xsd 1 1 DataSet2Test

    It is referencing this line in the test.xmd xml file:

    <?xml version="1.0" encoding="utf-8"?>

    Any idea why this would be throwing an error?  Any idea of how to go about compiling a DataSet?  Any help would be appreciated.

     

    TIA,

    Eric

    Monday, January 29, 2007 8:32 PM

Answers

  • Check the class definitions and make sure you don't have any typo's or errors of that sort. If all you are trying to do is create a bunch of datasets in an assembly, that should be totally acceptable.  Check the code though and make sure it's all spelled correctly
    Tuesday, January 30, 2007 5:19 AM