StackOverflowException (mscorlib.dll) in WebGrid with LoadTablesStructureFromXml

14 replies. Last post: April 6, 2010 4:12 AM by Handy Surya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hello,

Example:

WebGrid (401) with ClientSideBinding and Classic Custom Paging.

On Page_Load WebGrid load structure by LoadTablesStructureFromXml method. If you put this code without checking isPostBack like this:

//if (!IsPostBack)
//{
        WebGrid1.DataMember = "V_CONN_STAT";
        WebGrid1.LoadTablesStructureFromXml(Server.MapPath("~/V_CONN_STAT.xml"));
//}

then you can get StackOverflowException  .

To replicate , try this steps:

1. after first loading page, change the page numer to another (page 3)

2. (important) click any row to select them (if don't exception doesn't appear)

3. go to page back (page 2 for example)

and you've got a StackOverflowException

 

I include example page without database(I work on Sybase)

Regards

Andrzej

1 attachment
All times are GMT -5. The time now is 1:25 PM.
Previous Next