'Orchard.ContentManagement.ContentItem' does not contain a definition for 'ContentItem'
description
This RunTimeBinderException is thrown from ContentItemBehaviour when opening a page with more than two items of breadcrumb links (i.e: home link / first level link / second level link). This exception occurred on 1.5 every time, now on 1.6 just on such deeper pages.
This originates from MenuItem.cshtml ln 23 where Model is the link of the last item of the breadcrumbs (i.e. "second level link").
Below is the exception and the stack trace leading to it.
Edit: it seems this doesn't even need breadcrumbs. Basically if there's a menu item with path /my-path and there's a page independent from the menu (not included in the menu) with the path /my-path/my-sub-path the exception happens when I open the latter.
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException occurred
HResult=-2146233088
Message='Orchard.ContentManagement.ContentItem' does not contain a definition for 'ContentItem'
Source=Anonymously Hosted DynamicMethods Assembly
StackTrace:
at lambda_method(Closure )
at ClaySharp.ClayBehavior.GetMemberMissing(Func`1 proceed, Object self, String name) in C:\Users\sebros\My Projects\Clay\src\ClaySharp\ClayBehavior.cs:line 17
InnerException:
[External Code]
ClaySharp.dll!ClaySharp.ClayBehavior.GetMemberMissing(System.Func