[Mono-dev] Very simple typed dataset serialization fails

marcos b marcosb at internet.com.uy
Thu Sep 18 18:01:49 EDT 2008


I have an extremelly simple typed dataset generated using vs 2005 with one
datatable with a simple column
When I try to run this test I get the following exception

System.ArgumentException : The given name 'MyDataTable' matches atleast two
namesin the collection object with different namespaces

     [Test]
        public void SimpleTypedDataSetSerialization()
        {            
            MyDataSet ds = new MyDataSet();            

            BinaryFormatter f = new BinaryFormatter();
            MemoryStream ms = new MemoryStream();
            f.Serialize(ms, ds);

            ms.Position = 0;
            ds = (MyDataSet)f.Deserialize(ms);            
        }

Is imperative for me to have the possibility of serializing and
deserializing typed datasets for the migration of my application to the mono
platform. So I would be very happy to know if this issue is going to be
addressed soon.

Thanks
-- 
View this message in context: http://www.nabble.com/Very-simple-typed-dataset-serialization-fails-tp19562540p19562540.html
Sent from the Mono - Dev mailing list archive at Nabble.com.



More information about the Mono-devel-list mailing list