There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
'Orchard.ContentManagement.ContentItem' does not contain a definition for 'ContentItem'
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.
Message='Orchard.ContentManagement.ContentItem' does not contain a definition for 'ContentItem'
Source=Anonymously Hosted DynamicMethods Assembly
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