https://bugzilla.novell.com/show_bug.cgi?id=427769
Summary: Typed datasets binary serialization error
Product: Mono: Class Libraries
Version: 2.0
Platform: Other
OS/Version: Windows XP
Status: NEW
Severity: Major
Priority: P5 - None
Component: Sys.Data
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: Development
Description of Problem:
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 when deserializing
the dataset
"System.ArgumentException : The given name 'MyDataTable' matches atleast two
namesin the collection object with different namespaces"
This also happens with a vs2008 generated dataset
Steps to reproduce the problem:
[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);
}
Actual Results:
System.ArgumentException : The given name 'MyDataTable' matches atleast two
namesin the collection object with different namespaces
Expected Results:
How often does this happen?
Always
Additional Information:
My application is 1 million LOC. A rewrite of typed datasets into plain objects
it's not a nice alternative
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs