Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loading dataset from a diffgram
Message
From
18/05/2005 20:33:29
 
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
01015501
Message ID:
01015652
Views:
28
Stephane,

Not 100% sure (I do it without DiffGrams), but try it without the XmlTextReader:
sr = new System.IO.StringReader(theDiffGram);
newDataSet.ReadXml(sr, XmlReadMode.DiffGram); // Exception here
~~Bonnie



>Hi
>
>I have a Dataset populated with data, i then send it to a VFP client which then uses it and returns a Diffram generated by VFP.
>
>Back to .Net, i have this function to import the diffgram:
>
>
>newDataSet = ds.Clone() // Clone the original, returns a new Ds with the structure but no data
>
>sr = new System.IO.StringReader(theDiffGram);
>System.Xml.XmlTextReader xmlr =  new System.Xml.XmlTextReader(sr);
>newDataSet.ReadXml(xmlr, XmlReadMode.DiffGram); // Exception here
>
>
>The exception states that the table referenced in the diffgram does not exist, but it does exist... since it's a clone from the original.
>
>Anyone ?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform