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 7:  <script runat="server">
Line 8:      Protected Overrides Sub OnInit(ByVal e As System.EventArgs)
Line 9:          MyBase.OnInit(e)
Line 10:        If iscache Then
Line 11:            Exit Sub

Source File: D:\www.tourtx.cn\news\show.aspx    Line: 9

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.show.ShowPage() +766
   TourEx.B2C.Base.CorePage.OnInit(EventArgs e) +49
   ASP.news_show_aspx.OnInit(EventArgs e) in D:\www.tourtx.cn\news\show.aspx:9
   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