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) +455
   Umbraco.Core.Configuration.UmbracoSettings.ContentErrorsElement.get_Error404Collection() in d:\a\1\s\src\Umbraco.Core\Configuration\UmbracoSettings\ContentErrorsElement.cs:13
   Umbraco.Web.Routing.ContentFinderByConfigured404.TryFindContent(PublishedRequest frequest) in d:\a\1\s\src\Umbraco.Web\Routing\ContentFinderByConfigured404.cs:57
   Umbraco.Web.Routing.PublishedRouter.HandlePublishedContent(PublishedRequest request) in d:\a\1\s\src\Umbraco.Web\Routing\PublishedRouter.cs:459
   Umbraco.Web.Routing.PublishedRouter.FindPublishedContentAndTemplate(PublishedRequest request) in d:\a\1\s\src\Umbraco.Web\Routing\PublishedRouter.cs:401
   Umbraco.Web.Routing.PublishedRouter.PrepareRequest(PublishedRequest request) in d:\a\1\s\src\Umbraco.Web\Routing\PublishedRouter.cs:135
   Umbraco.Web.UmbracoInjectedModule.ProcessRequest(HttpContextBase httpContext) in d:\a\1\s\src\Umbraco.Web\UmbracoInjectedModule.cs:159
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +194
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +220
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +94


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