'/' 應用程式中發生伺服器錯誤。

索引 -27 不是一個負數值,也不會超過資料列總數。

描述: 在執行目前 Web 要求的過程中發生未處理的例外狀況。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。

例外狀況詳細資訊: System.IndexOutOfRangeException: 索引 -27 不是一個負數值,也不會超過資料列總數。

原始程式錯誤:


行 714:
行 715:        rptEmployees.DataSource = objPage
行 716:        rptEmployees.DataBind()
行 717:
行 718:    End Sub

原始程式檔: e:\6000go\chihbao\shop101.aspx.vb    行: 716

堆疊追蹤:


[IndexOutOfRangeException: 索引 -27 不是一個負數值,也不會超過資料列總數。]
   System.Data.DataView.GetRow(Int32 index) +1902405
   System.Data.DataView.System.Collections.IList.get_Item(Int32 recordIndex) +13
   System.Web.UI.WebControls.EnumeratorOnIList.get_Current() +29
   System.Web.UI.WebControls.Repeater.AddDataItemsIntoItemsArray(IEnumerable dataSource, Boolean useDataSource) +134
   System.Web.UI.WebControls.Repeater.PostGetDataAction(IEnumerable dataSource) +71
   System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +220
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +62
   System.Web.UI.WebControls.Repeater.DataBind() +77
   index102.DataListDataBind() in e:\6000go\chihbao\shop101.aspx.vb:716
   index102.Page_Load(Object sender, EventArgs e) in e:\6000go\chihbao\shop101.aspx.vb:101
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


版本資訊: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.4087.0