Server Error in '/' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

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:


[NullReferenceException: Object reference not set to an instance of an object.]
   umbraco.library.GetCurrentNotFoundPageId() in d:\Projects\buoy4000\Umbraco.Web\umbraco.presentation\library.cs:1888
   Umbraco.Web.Routing.ContentFinderByLegacy404.TryFindContent(PublishedContentRequest pcr) in d:\Projects\buoy4000\Umbraco.Web\Routing\ContentFinderByLegacy404.cs:21
   Umbraco.Web.Routing.ContentLastChanceFinderByNotFoundHandlers.HandlePageNotFound(PublishedContentRequest docRequest) in d:\Projects\buoy4000\Umbraco.Web\Routing\ContentLastChanceFinderByNotFoundHandlers.cs:50
   Umbraco.Web.Routing.ContentLastChanceFinderByNotFoundHandlers.TryFindContent(PublishedContentRequest docRequest) in d:\Projects\buoy4000\Umbraco.Web\Routing\ContentLastChanceFinderByNotFoundHandlers.cs:28
   Umbraco.Web.Routing.PublishedContentRequestEngine.HandlePublishedContent() in d:\Projects\buoy4000\Umbraco.Web\Routing\PublishedContentRequestEngine.cs:411
   Umbraco.Web.Routing.PublishedContentRequestEngine.FindPublishedContentAndTemplate() in d:\Projects\buoy4000\Umbraco.Web\Routing\PublishedContentRequestEngine.cs:347
   Umbraco.Web.Routing.PublishedContentRequestEngine.PrepareRequest() in d:\Projects\buoy4000\Umbraco.Web\Routing\PublishedContentRequestEngine.cs:78
   Umbraco.Web.Routing.PublishedContentRequest.Prepare() in d:\Projects\buoy4000\Umbraco.Web\Routing\PublishedContentRequest.cs:61
   Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext) in d:\Projects\buoy4000\Umbraco.Web\UmbracoModule.cs:122
   Umbraco.Web.UmbracoModule.<Init>b__7(Object sender, EventArgs e) in d:\Projects\buoy4000\Umbraco.Web\UmbracoModule.cs:510
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +71


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