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.]
   Kentico.Content.Web.Mvc.PreviewResponseRedirectionModule.DecorateLocationHttpHeader(IHttpContext httpContext, IPathDecorator previewPathDecorator) +173
   Kentico.Content.Web.Mvc.PreviewResponseRedirectionModule.PreSendRequestHeaders_Execute(Object sender, EventArgs e) +80
   CMS.Base.AbstractHandler.CallEventHandler(EventHandler`1 h, TArgs e) +109
   CMS.Base.AbstractHandler.Raise(String partName, List`1 list, TArgs e, Boolean important) +776
   CMS.Base.SimpleHandler`2.RaiseExecute(TArgs e) +99
   CMS.Base.SimpleHandler`2.RaiseExecute(TArgs e) +130
   CMS.Base.SimpleHandler`2.StartEvent(TArgs e) +189
   CMS.Base.ApplicationModule.PreSendRequestHeaders(Object sender, EventArgs e) +21
   System.Web.SendResponseExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +261
   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