U4-3087 - 'umbraco.MacroEngines.DynamicNodeList' does not contain a definition for 'Any'

Created by Tim Gaunt 10 Oct 2013, 05:15:36 Updated by Shannon Deminick 21 Jun 2017, 07:58:15

Relates to: U4-479

We've been getting the error 'umbraco.MacroEngines.DynamicNodeList' does not contain a definition for 'Any' in a couple of projects now and we've only just worked out what's causing it but not why.

To replicate:

Install a blank install of Umbraco (reproduced up to v6.1.6)

Install either [DotNetOpenAuth|https://www.nuget.org/packages/DotNetOpenAuth.AspNet/] or [Microsoft.Web.Optimization|https://www.nuget.org/packages/Microsoft.Web.Optimization/0.1.0]

Upload the dlls to the bin folder

The error should occur (if you're installing bundling, you will need to use the methods to trigger it so set debug=false and use a bundle somewhere

I'm not sure what it is in these two libraries in specific but as soon as they are in the bin folder and accessed in the code you get the above error


Tim Gaunt 10 Oct 2013, 05:17:55

Interstingly, we have another site that has bundling installed without an issue so I suspect the better one to check would be DotNetOpenAuth

Tim Gaunt 10 Oct 2013, 05:23:47

This may also be relevant: http://our.umbraco.org/forum/developers/xslt/27609-Referring-DotNetOpenAuthDLL-making-error-on-all-XSLTs

Tim Gaunt 10 Oct 2013, 05:29:26

Ok I've got to the bottom of why it happens, if there is a missing assembly that the dll requires it will cause this error. The fix is to upload all dependencies but as Ben has hinted at in his forum post, Umbraco should not error if it can't resolve all dependencies.

Shannon Deminick 21 Jun 2017, 07:58:15

Closing issue due to inactivity - see blog post for details https://umbraco.com/blog/issue-tracker-cleanup/

Priority: Normal

Type: Bug

State: Closed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 6.1.6

Due in version:


Story Points: