U4-2240 - 4.11.8 'RenderSection' 'required' parameter default is not false

Created by Luke Alderton 15 May 2013, 13:24:34 Updated by Sebastiaan Janssen 17 May 2013, 07:25:53

The 'RenderSection' method in MVC states that the parameter called required is set to false by default, yet if you load a page without specifically setting it to false, it will throw the following error:

System.Web.HttpException: Section not defined "sectionname".

Temporary fix is to use '@RenderSection("sectionname", false)' instead of '@RenderSection("sectionname")'.


Sebastiaan Janssen 17 May 2013, 07:25:50

This is not a bug but intended behavior. Not something we control either as this is a feature of the MVC framework, not Umbraco.

Priority: Normal

Type: Bug

State: Closed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 4.11.6, 4.11.7, 4.11.8

Due in version:


Story Points: