Server Error in '/' Application.

Index was outside the bounds of the array.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.

Source Error:


Line 10: pagesize=40
Line 11: 
Line 12:         MyBase.OnInit(e)
Line 13:        If iscache Then
Line 14:            Exit Sub

Source File: D:\www.tourtx.cn\news\list.aspx    Line: 12

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   System.Collections.Generic.List`1.get_Item(Int32 index) +41
   System.Data.RecordManager.NewRecordBase() +5301164
   System.Data.DataTable.NewRecord(Int32 sourceRecord) +23
   System.Data.DataRow.BeginEditInternal() +5302217
   System.Data.DataRow.set_Item(DataColumn column, Object value) +237
   System.Data.DataRow.set_Item(String columnName, Object value) +24
   TourEx.B2C.Common.Utils.ToModel(DataRow& dr, String filter) +535
   TourEx.B2C.Base.BLL.NewsCategory.GetModel(Int32 T_ID) +240
   TourEx.B2C.Web.News.list.ShowPage() +179
   TourEx.B2C.Base.CorePage.OnInit(EventArgs e) +49
   ASP.news_list_aspx.OnInit(EventArgs e) in D:\www.tourtx.cn\news\list.aspx:12
   System.Web.UI.Control.InitRecursive(Control namingContainer) +134
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +489


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34209