Sequence contains no elements in New Article preview macro
Hello,
I have a script that I basically copy pasted from an older Umbraco installation in a new one I am building. The macro takes my news articles and shows a list of article previews.
When I try to re-use this code I get the following error:
"
Sequence contains no elements
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Sequence contains no elements
Source Error:
Line 16:
Line 17:
Sequence contains no elements in New Article preview macro
Hello,
I have a script that I basically copy pasted from an older Umbraco installation in a new one I am building. The macro takes my news articles and shows a list of article previews.
This is the line where it is failing:
When I try to re-use this code I get the following error:
" Sequence contains no elements
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Sequence contains no elements Source Error: Line 16: Line 17:
1 source) +269 Umbraco.Web.Dynamics.DynamicQueryable.OrderBy(IQueryable source, String ordering, Func
1 getDynamicListTypeCallback, Object[] values) +1120 Umbraco.Web.Dynamics.DynamicQueryable.OrderBy(IQueryable1 source, String ordering, Func
1 getDynamicListTypeCallback, Object[] values) +89 Umbraco.Web.Models.DynamicPublishedContentList.OrderBy(String key) +181 Umbraco.Web.Models.DynamicPublishedContentList.TryInvokeMember(InvokeMemberBinder binder, Object[] args, Object& result) +1392 CallSite.Target(Closure , CallSite , Object , String ) +220 "My articles are laid out in the same way as I've done it before.
-News Page --News Article
In both the content tree and document type tree.
Any help?
Thank you
is working on a reply...