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'
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
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:
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
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,
I have similar problem. In example code the First() method is inaccesible.
How you resolved you problem - could you write more details?
is working on a reply...