Server Error in '/' Application.

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 83:                     else
Line 84:                     {
Line 85:                         vArticle.RenderFrontPage_Category123_1(false, "", 30, 0, dummyArray, _nextDateTime, P, output, Context, false, "");
Line 86:                     }
Line 87:                 }

Source File: d:\Biz\Site\testbizcommunity\App_Control\Article\Browse.ascx    Line: 85

Stack Trace:


[InvalidOperationException: Sequence contains no elements]
   System.Linq.Enumerable.Min(IEnumerable`1 source) +296
   Biz.View.vArticle.helpRenderArticleList(List`1 articleList, ContentRenderOptionsContainer options) in D:\Biz\Repository\Test\Site\Biz.View\Article.cs:6186
   Biz.View.vArticle.RenderFrontPage24HourArticles_By_Category(ContentRenderOptionsContainer options) in D:\Biz\Repository\Test\Site\Biz.View\Article.cs:6332
   Biz.View.vArticle.RenderFrontPageBrowse(Boolean isTagBrowse, Boolean renderedAds, Boolean showPromotedContent, Boolean showMoreButton, Boolean isNextDateClick, Int32 totalRowsDisplayed, Int32 count, List`1 listRenderedContentIds, List`1 list_rBrowseContent, Byte contentType, cP P, TextWriter output, Boolean autoLoadMoreOnScroll, String jobsHtmlBeforeMoreButton, Boolean allowTopContent) in D:\Biz\Repository\Test\Site\Biz.View\Article.cs:1038
   Biz.View.vArticle.RenderFrontPage_Category123_1(Boolean IsTagBrowse, String tagText, Int32 totalRowsDisplayed, Int32 count, List`1 listRenderedContentIds, DateTime startDate, cP P, TextWriter output, HttpContext Context, Boolean autoLoadMoreOnScroll, String htmlBeforeMoreButton) in D:\Biz\Repository\Test\Site\Biz.View\Article.cs:549
   ASP.app_control_article_browse_ascx.Render(HtmlTextWriter output) in d:\Biz\Site\testbizcommunity\App_Control\Article\Browse.ascx:85
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +169
   ASP.articles_aspx.RenderChildren(HtmlTextWriter output) in d:\Biz\Site\testbizcommunity\Articles.aspx:94
   Biz.Web.cBasePage.Render(HtmlTextWriter output) in D:\Biz\Repository\Test\Site\Biz.Web\Page\BasePage.cs:289
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4239


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0