Server Error in '/Registrars' Application.

Value cannot be null.
Parameter name: source

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.ArgumentNullException: Value cannot be null.
Parameter name: source

Source Error:


Line 3:  
Line 4:  @{ int ctr = 0; }
Line 5:  @foreach (var item in Model.WorkflowItems.Where(x => !x.OmitFromWorkflow)) { 
Line 6:      ctr++;
Line 7:      if (ViewContext.ParentActionViewContext.RouteData.GetRequiredString("action") == item.Method.Name) {  

Source File: d:\Websites\CentralBedfordshire\Registrars\Views\Shared\WorkflowProgressWidget.cshtml    Line: 5

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: source]
   System.Linq.Enumerable.Where(IEnumerable`1 source, Func`2 predicate) +6466200
   ASP._Page_Views_Shared_WorkflowProgressWidget_cshtml.Execute() in d:\Websites\CentralBedfordshire\Registrars\Views\Shared\WorkflowProgressWidget.cshtml:5
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +128
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +119
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +357
   System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +31
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +415
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +623
   System.Web.Mvc.Controller.ExecuteCore() +137
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +91
   Zipporah.Registrars.Web.Controllers.ZipController.Execute(RequestContext requestContext) in C:\GHSource\Neo\CB\Zipporah.Neo.Registrars.CentralBedfordshire\core\Zipporah.Registrars.Web.Controllers\ZipController.cs:113
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +54
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +25
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +51
   System.Web.Mvc.<>c__DisplayClass4.<Wrap>b__3() +19
   System.Web.Mvc.ServerExecuteHttpHandlerWrapper.Wrap(Func`1 func) +29
   System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +1345

[HttpException (0x80004005): Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'.]
   System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +2320
   System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage) +131
   System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm) +33
   System.Web.Mvc.Html.ChildActionExtensions.ActionHelper(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues, TextWriter textWriter) +561
   System.Web.Mvc.Html.ChildActionExtensions.RenderAction(HtmlHelper htmlHelper, String actionName) +48
   ASP._Page_Views_DeathBookingProcess_IntroductionAndQuestions_cshtml.Execute() in d:\Websites\CentralBedfordshire\Registrars\Views\DeathBookingProcess\IntroductionAndQuestions.cshtml:44
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +128
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +86
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +104
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +357
   System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +31
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +415
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +623
   System.Web.Mvc.Controller.ExecuteCore() +137
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +91
   Zipporah.Registrars.Web.Controllers.ZipController.Execute(RequestContext requestContext) in C:\GHSource\Neo\CB\Zipporah.Neo.Registrars.CentralBedfordshire\core\Zipporah.Registrars.Web.Controllers\ZipController.cs:113
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +54
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +25
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +51
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +602
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +128


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4087.0