“/”应用程序中的服务器错误。

索引超出了数组界限。

说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.IndexOutOfRangeException: 索引超出了数组界限。

源错误:

执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

堆栈跟踪:


[IndexOutOfRangeException: 索引超出了数组界限。]
   System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +2635524
   System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) +10
   Microsoft.Practices.ObjectBuilder.WeakRefDictionary`2.Add(TKey key, TValue value) +168
   Microsoft.Practices.ObjectBuilder.Locator.Add(Object key, Object value) +160
   kdgs.Entities.EntityLocator.Add(String key, Object value) +34
   kdgs.Entities.EntityManager.StartTracking(String key, IEntity entity, Boolean isTrackingEnabled) +209
   kdgs.Entities.EntityManager.LocateOrCreate(String key, String typeString, Type entityFactoryType, Boolean isLocatorEnabled) +951
   kdgs.Data.Bases.SitenewsProviderBaseCore.Fill(IDataReader reader, TList`1 rows, Int32 start, Int32 pageLength) +489
   kdgs.Data.SqlClient.SqlSitenewsProviderBase.GetPaged(TransactionManager transactionManager, String whereClause, String orderBy, Int32 start, Int32 pageLength, Int32& count) +553
   kdgs.Web.Data.SitenewsDataSourceView.GetSelectData(Int32& count) +380
   kdgs.Web.Data.BaseDataSourceView`2.GetCachedData(Int32& count) +121
   kdgs.Web.Data.BaseDataSourceView`2.GetEntityList(DataSourceSelectArguments arguments, IDictionary values) +537
   kdgs.Web.Data.BaseDataSourceView`2.ExecuteSelectCore(DataSourceSelectArguments arguments) +421
   kdgs.Web.Data.BaseDataSourceView`2.ExecuteSelect(DataSourceSelectArguments arguments) +5
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +17
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +149
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
   System.Web.UI.WebControls.GridView.DataBind() +4
   System.Web.UI.Control.DataBindChildren() +216
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
   System.Web.UI.Control.DataBind() +12
   System.Web.UI.Control.DataBindChildren() +216
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
   System.Web.UI.Control.DataBind() +12
   kdgs.Web.Func.PageUtil.Page_Load(Object sender, EventArgs e) +47
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


版本信息: Microsoft .NET Framework 版本:2.0.50727.42; ASP.NET 版本:2.0.50727.42