Server Error in '/' Application.

Sequence contains no elements

Description: An unhandled exception occurred.

Exception Details: System.InvalidOperationException: Sequence contains no elements

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[InvalidOperationException: Sequence contains no elements]
   System.Linq.Enumerable.Min(IEnumerable`1 source) +316
   PuGSitecore.Controllers.CommunitiesController.SetupCommunityHomeStats(CommunityOverviewModel model, Comm community) in C:\build\PuGSitecore.Web\Controllers\CommunitiesController.cs:731
   PuGSitecore.Controllers.CommunitiesController.CommunityOverview() in C:\build\PuGSitecore.Web\Controllers\CommunitiesController.cs:655
   lambda_method(Closure , ControllerBase , Object[] ) +87
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +35
   System.Web.Mvc.<>c__DisplayClass24_0.<InvokeActionMethodWithFilters>b__0() +80
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +490
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +490
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +524


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