.net Framework Issue :System.xml Stack overflow exception in DataSet.ReadXML only when run in 64 bit RRS feed

  • General discussion

  • Hello there,

            I have a data table serialized and its size is approx 204MB. When we try to deserialize and load it into a dataset using ReadXML Api. code snippet is given below. This is not an issue in 32 bit mode(Enable64bit is set to 0 or when run on an xp box) and is an issue only in 64 bit mode.

    Code snippet:

    string xmlFilePath=@"C:\Temp\c42ea062-e14b-47a6-bed6-430f5a486520"; 
    DataSet dataSet = new DataSet(); 
    //dataSet.ReadXml(new StringReader(File.ReadAllText(xmlFilePath)));

    if (dataSet.Tables.Count > 0) {
    DataTable dataTable = dataSet.Tables[0]; 
    MessageBox.Show("DataTable Read XML"); }

    .net Framework Exception details: I am using .net framework 3.5 on Win2008 R2.

    I get a stack overflow exception from File :C:\Users\KTHIYA~1\AppData\Local\Temp\SymbolCache\src\source\Dotnetfx_Win7_3.5.1\3.5.1\DEVDIV\depot\DevDiv\releases\whidbey\NetFXspW7\ndp\fx\src\Xml\System\Xml\schema\ContentValidator.cs\1\ContentValidator.cs

    and in function

    public override void ExpandTree(InteriorNode parent, SymbolsDictionary symbols, Positions positions) {

    this, symbols, positions);

    if (rightChild != null) { rightChild.ExpandTree(this, symbols, positions);}


    Let me know if you need the sample data file i could attach it or send it across for debugging purpose. Kindly let me know if there is any know issue/Fix available or a work around for this one.



    Monday, May 17, 2010 5:39 PM