Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Richard Boelen 61 posts 153 karma points
    Aug 23, 2012 @ 10:07
    Richard Boelen
    0

    Problems with Linq extension methods on DynamicNodeList after upgrade from 4.7.2.-> 4.8.1

     

    Hi,

    I have upgraded from 4.7.2. to 4.8.1, but this gives me exceptions when render macroscripts that use linq extensions on the DynamicNodeList like this:

    @{if(Model != null){
      var content = Model.AncestorOrSelf().Descendants("devotitAboutSnippit").First();
    }

    This worked fine in 4.7.2 but now throws exception in 4.8.1:

    An exception of type 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' occurred in Anonymously Hosted DynamicMethods Assembly but was not handled in user code

    Additional information: 'umbraco.MacroEngines.DynamicNodeList' does not contain a definition for 'First'

    Anybody?

    Cheers

     

  • Richard Boelen 61 posts 153 karma points
    Aug 24, 2012 @ 17:23
    Richard Boelen
    0

    Finally, fixed my own problem....duh. I had uComponents installed. This does not only affect uQuery but also using Linq extension methods on DynamicNodeList.

    Good thing that there is something like: ?umbDebugShowTrace=true

    Cheers,

     

     

  • 10gler 5 posts 23 karma points
    Aug 05, 2014 @ 23:06
    10gler
    0

     

     

     

    I have similar problem. In example code the First() method is inaccesible.

    How you resolved you problem - could you write more details?

     

Please Sign in or register to post replies

Write your reply to:

Draft