This is a migrated thread and some comments may be shown as answers.

RadGrid Exception on loading - Thread was being aborted

3 Answers 243 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sija
Top achievements
Rank 1
Sija asked on 19 Aug 2008, 05:11 AM
Hi, we are often getting this exception on a screen where we show a large amount of data in a RadGrid. Could someone please suggest what could be the issue. Because it loads at times and fails at other times.

Message: Thread was being aborted.; Source: mscorlib; Trace:    at System.ModuleHandle._GetModuleTypeHandle()
   at System.ModuleHandle.GetModuleTypeHandle()
   at System.RuntimeType.RuntimeTypeCache..ctor(RuntimeType runtimeType)
   at System.RuntimeType.get_Cache()
   at System.RuntimeType.ToString()
   at System.Web.UI.PageTheme.CreateSkinKey(Type controlType, String skinID)
   at System.Web.UI.PageTheme.ApplyControlSkin(Control control)
   at System.Web.UI.Control.ApplySkin(Page page)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.AddedControl(Control control, Int32 index)
   at System.Web.UI.ControlCollection.Add(Control child)
   at System.Web.UI.WebControls.Table.RowControlCollection.Add(Control child)
   at Telerik.WebControls.GridEditFormItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows)
   at Telerik.WebControls.GridItemBuilder.CreateItems(GridGroupingContext group)
   at Telerik.WebControls.GridItemBuilder.CreateGroupSubItems(GridGroupingContext group, GridEnumerableBase enumerable)
   at Telerik.WebControls.GridItemBuilder.HandleGrouping(GridGroupingContext group, GridEnumerableBase enumerable, Boolean& isGroup)
   at Telerik.WebControls.GridItemBuilder.CreateItems(GridGroupingContext group)
   at Telerik.WebControls.GridItemBuilder.CreateGroupSubItems(GridGroupingContext group, GridEnumerableBase enumerable)
   at Telerik.WebControls.GridItemBuilder.HandleGrouping(GridGroupingContext group, GridEnumerableBase enumerable, Boolean& isGroup)
   at Telerik.WebControls.GridItemBuilder.CreateItems(GridGroupingContext group)
   at Telerik.WebControls.GridItemBuilder.CreateGroupSubItems(GridGroupingContext group, GridEnumerableBase enumerable)
   at Telerik.WebControls.GridItemBuilder.HandleGrouping(GridGroupingContext group, GridEnumerableBase enumerable, Boolean& isGroup)
   at Telerik.WebControls.GridItemBuilder.CreateItems(GridGroupingContext group)
   at Telerik.WebControls.GridTableView.CreateItems(IEnumerator enumerator, GridColumn[] columns, ControlCollection controls)
   at Telerik.WebControls.GridTableView.CreateControlHierarchy(Boolean useDataSource)
   at Telerik.WebControls.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource)
   at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
   at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
   at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
   at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
   at Telerik.WebControls.GridTableView.PerformSelect()
   at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
   at Telerik.WebControls.GridTableView.DataBind()
   at Telerik.WebControls.RadGrid.DataBind()
   at Telerik.WebControls.RadGrid.AutoDataBind(GridRebindReason rebindReason)
   at Telerik.WebControls.RadGrid.Rebind()
   at ReportMilestoneSummary.GenerateReport(DateTime selStartDate, DateTime selEndDate)
   at ReportMilestoneSummary.btnGo_Click(Object sender, EventArgs e); Details: System.Threading.ThreadAbortException: Thread was being aborted.
   at System.ModuleHandle._GetModuleTypeHandle()
   at System.ModuleHandle.GetModuleTypeHandle()
   at System.RuntimeType.RuntimeTypeCache..ctor(RuntimeType runtimeType)
   at System.RuntimeType.get_Cache()
   at System.RuntimeType.ToString()
   at System.Web.UI.PageTheme.CreateSkinKey(Type controlType, String skinID)
   at System.Web.UI.PageTheme.ApplyControlSkin(Control control)
   at System.Web.UI.Control.ApplySkin(Page page)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.AddedControl(Control control, Int32 index)
   at System.Web.UI.ControlCollection.Add(Control child)
   at System.Web.UI.WebControls.Table.RowControlCollection.Add(Control child)
   at Telerik.WebControls.GridEditFormItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows)
   at Telerik.WebControls.GridItemBuilder.CreateItems(GridGroupingContext group)
   at Telerik.WebControls.GridItemBuilder.CreateGroupSubItems(GridGroupingContext group, GridEnumerableBase enumerable)
   at Telerik.WebControls.GridItemBuilder.HandleGrouping(GridGroupingContext group, GridEnumerableBase enumerable, Boolean& isGroup)
   at Telerik.WebControls.GridItemBuilder.CreateItems(GridGroupingContext group)
   at Telerik.WebControls.GridItemBuilder.CreateGroupSubItems(GridGroupingContext group, GridEnumerableBase enumerable)
   at Telerik.WebControls.GridItemBuilder.HandleGrouping(GridGroupingContext group, GridEnumerableBase enumerable, Boolean& isGroup)
   at Telerik.WebControls.GridItemBuilder.CreateItems(GridGroupingContext group)
   at Telerik.WebControls.GridItemBuilder.CreateGroupSubItems(GridGroupingContext group, GridEnumerableBase enumerable)
   at Telerik.WebControls.GridItemBuilder.HandleGrouping(GridGroupingContext group, GridEnumerableBase enumerable, Boolean& isGroup)
   at Telerik.WebControls.GridItemBuilder.CreateItems(GridGroupingContext group)
   at Telerik.WebControls.GridTableView.CreateItems(IEnumerator enumerator, GridColumn[] columns, ControlCollection controls)
   at Telerik.WebControls.GridTableView.CreateControlHierarchy(Boolean useDataSource)
   at Telerik.WebControls.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource)
   at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
   at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
   at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
   at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
   at Telerik.WebControls.GridTableView.PerformSelect()
   at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
   at Telerik.WebControls.GridTableView.DataBind()
   at Telerik.WebControls.RadGrid.DataBind()
   at Telerik.WebControls.RadGrid.AutoDataBind(GridRebindReason rebindReason)
   at Telerik.WebControls.RadGrid.Rebind()
   at ReportMilestoneSummary.GenerateReport(DateTime selStartDate, DateTime selEndDate)
   at ReportMilestoneSummary.btnGo_Click(Object sender, EventArgs e)

3 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 19 Aug 2008, 06:29 AM
Hello Sija,

This error is widely discussed on the web. Do you use Response.Redirect() in the application? See some helpful posts here and here.

Regards,
Konstantin Petkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Sija
Top achievements
Rank 1
answered on 19 Aug 2008, 06:47 AM
No we don't have a Response.Redirect() method in the code. On a button click, we call a stored procedure to fetch data drom DB which is then bound to a RadGrid.

Thanks,
Sija
0
Konstantin Petkov
Telerik team
answered on 21 Aug 2008, 11:33 AM
Hi Sija,

Unfortunately we cannot determine the source of the error without having additional information about your implementation. It will be best if you can send a sample runnable project which replicates the error. Please isolate the problem in a demo and send it through a formal support ticket to be able to help you further.

All the best,
Konstantin Petkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Sija
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Sija
Top achievements
Rank 1
Share this question
or