U4-2141 - List Descendants From Current Page doesn't save

Created by Chris Mahoney 23 Apr 2013, 22:28:17 Updated by Chris Mahoney 28 Apr 2013, 21:12:43

The built-in List Descendants From Current Page script doesn't work.

  1. Go to Developer
  2. Right-click Scripting Files
  3. Select Create
  4. Enter a Filename
  5. Under "Choose a template", select "List Descendants From Current Page"
  6. Click Create
  7. Click Save scripting File on the toolbar or press Ctrl-S

Saving will fail with the error CS0234: The type or namespace name 'Cms' does not exist in the namespace 'Umbraco' (are you missing an assembly reference?)

This is the first time that I've looked at the Scripting Files section (I normally use XSLT) but most of the other scripts seem to work. "List Child Pages With Doctype" also doesn't work though; it returns error CS0103: The name 'query' does not exist in the current context.

As this is my first time in here, let me know if I'm doing something wrong, but it doesn't seem right that these should fail on a brand-new install. I'm using 6.0.3 but have confirmed that the issue also occurs in the 6.1 beta.


Sebastiaan Janssen 24 Apr 2013, 06:02:10

@Chris did you install Umbraco through NuGet by any chance?

Chris Mahoney 25 Apr 2013, 20:10:33

No; I installed it manually from the zip file.

Sebastiaan Janssen 26 Apr 2013, 08:33:01

It shouldn't and I just tested it and it doesn't. The error indicates that you're missing namespace references.

Please check that the below section is in your web.config and make sure that you followed the install instructions from our documentation: http://our.umbraco.org/documentation/Installation/

<system.web.webPages.razor> </system.web.webPages.razor>

Chris Mahoney 28 Apr 2013, 21:12:43

This is really weird... I did a fresh install of 6.0.3 and it works in there, yet it's not working on my upgraded 6.0.3 despite having an identical bin directory and identical web.config (other than DB details). It therefore seems to be specific to my site (although that doesn't explain why a fresh install of 6.1 didn't work) but I appreciate that this isn't a support forum so I'll just leave it at that.

Edit: Oh and yes, all of those lines are in web.config.

Priority: Normal

Type: Bug

State: Can't Reproduce


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 6.1.0, 6.0.3

Due in version:


Story Points: