Server Error in '/' Application.

Sequence contains no elements

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.InvalidOperationException: Sequence contains no elements

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[InvalidOperationException: Sequence contains no elements]
   System.Linq.Enumerable.First(IEnumerable`1 source) +404
   Umbraco.Web.Routing.NotFoundHandlerHelper.GetCurrentNotFoundPageId(IContentErrorPage[] error404Collection, IEntityService entityService, IPublishedContentQuery publishedContentQuery, CultureInfo errorCulture) +240
   Umbraco.Web.Routing.ContentFinderByConfigured404.TryFindContent(PublishedRequest frequest) +494
   Umbraco.Web.Routing.PublishedRouter.HandlePublishedContent(PublishedRequest request) +158
   Umbraco.Web.Routing.PublishedRouter.FindPublishedContentAndTemplate(PublishedRequest request) +119
   Umbraco.Web.Routing.PublishedRouter.PrepareRequest(PublishedRequest request) +180
   Umbraco.Web.UmbracoInjectedModule.ProcessRequest(HttpContextBase httpContext) +320
   Umbraco.Web.UmbracoInjectedModule.<Init>b__18_4(Object sender, EventArgs e) +80
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +201
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +132
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73


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