Index was outside the bounds of the array.

2019 年 11 月 8 日40









[IndexOutOfRangeException: Index was outside the bounds of the array.]



System.Collections.Generic.List`1.Contains(T item) +170



Aspx.Portal.Controllers.<>c__DisplayClass96_1.<Codes>b__31(CodeQueryModel c) in D:\EzongProjects\Aspx.Portal\Controllers\CodeController.cs:666



System.Linq.<>c__DisplayClass6_0`1.<CombinePredicates>b__0(TSource x) +44



System.Linq.WhereListIterator`1.MoveNext() +73



System.Linq.Enumerable.Count(IEnumerable`1 source) +225



Aspx.Portal.Controllers.CodeController.Codes(String listParam, Int32 pageIndex, Int32 pageSize) in D:\EzongProjects\Aspx.Portal\Controllers\CodeController.cs:835



lambda_method(Closure , ControllerBase , Object[] ) +192



System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14



System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +182



System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27



System.Web.Mvc.Async.<>c__DisplayClass42.<BeginInvokeSynchronousActionMethod>b__41() +28



System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +10



System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50



System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +32



System.Web.Mvc.Async.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33() +58



System.Web.Mvc.Async.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() +228



System.Web.Mvc.Async.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult) +10



System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50



System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +34



System.Web.Mvc.Async.<>c__DisplayClass2a.<BeginInvokeAction>b__20() +24



System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +99



System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50



System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27



System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +14



System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +16



System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50



System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +36



System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +16



System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50



System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +26



System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10



System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +25



System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +16



System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50



System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +28



System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9



System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9873649



System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48



System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +159



0 0