U4-3942 - Cannot configure the request if there is not content assigned - exception

Created by Stefan Kip 26 Dec 2013, 12:41:07 Updated by Shannon Deminick 28 Dec 2013, 04:24:51

On a clean installation of umbraco 7.0.1, I get the following exception when visiting a URL which does not exist (instead of a 404):

Server Error in '/' Application. Cannot configure the request if there is not content assigned 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: Cannot configure the request if there is not content assigned

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: Cannot configure the request if there is not content assigned] Umbraco.Web.Routing.PublishedContentRequestEngine.ConfigureRequest() +431 Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext) +522 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165

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

Comments

Stephan 26 Dec 2013, 12:58:21

Indeed. That was modified by Shannon with commit e981776e6da574899e20ca4b77d1a0308393fbb2 and seems to break "not found" management? Assigning to Shannon.


Shannon Deminick 28 Dec 2013, 00:20:51

Bah!! didn't see that one coming. Will write some unit tests for this so that we don't break things inadvertently again.


Priority: Major

Type: Bug

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.0.1

Due in version: 7.0.2

Sprint:

Story Points:

Cycle: