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 ?