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

序列不包含任何元素

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

异常详细信息: System.InvalidOperationException: 序列不包含任何元素

源错误:

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

堆栈跟踪:


[InvalidOperationException: 序列不包含任何元素]
   System.Linq.Enumerable.First(IEnumerable`1 source) +451
   Portal.Controllers.LuneceLawInfoHelper.GetLawFileInfo(String id) in E:\SVN\trunk\Soian.Zhitai.Knowledge\Portal\Controllers\LuceneLawFileInfoHelper.cs:312
   Portal.Controllers.LuneceLawInfoHelper.getSummary(String query, Int32[] indexs) in E:\SVN\trunk\Soian.Zhitai.Knowledge\Portal\Controllers\LuceneLawFileInfoHelper.cs:287
   Portal.Controllers.LuneceLawInfoHelper.Searchlaw(String query, Int32 page) in E:\SVN\trunk\Soian.Zhitai.Knowledge\Portal\Controllers\LuceneLawFileInfoHelper.cs:367
   Portal.Controllers.SearchController.LawResult() in E:\SVN\trunk\Soian.Zhitai.Knowledge\Portal\Controllers\SearchController.cs:32
   lambda_method(Closure , ControllerBase , Object[] ) +87
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +269
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +35
   System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +80
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +454
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +647
   System.Web.Mvc.Controller.ExecuteCore() +143
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +91
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +57
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +25
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +49
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +648
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +213
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +131


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.3535.0