Server Error in '/' Application.

Sequence contains no matching element

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 matching element

Source Error:


Line 81:         <%} %>
Line 82:         
Line 83:         <% else if (path.Contains("/domy-sprzedaz") && Model.GetPager(PagerType.Short).First(p=>p.IsCurrent).Page ==0) { %>
Line 84:         <h2>Kołobrzeg - domy na sprzedaż</h2>
Line 85:         <p>Szukasz wymarzonego domu, który usytuowany będzie w okolicy polskiego morza? W naszej ofercie znajdziesz zarówno domy w zabudowie szeregowej, bliźniaczej, jak i te wolnostojące. Wybierać można w propozycjach budynków nowoczesnych, a także zabytkowych domów na wsi. Kupno domu to bardzo ważny krok w życiu każdego człowieka, dlatego nasza firma, dokłada wszelkich starań, by wybór klienta, padł na wymarzoną nieruchomość, która spełni jego wszystkie oczekiwania.<br /><br /> 

Source File: e:\w1\Apps5\CMS_IMO\Villa\Portals\Villa\Properties\Property\List.aspx    Line: 83

Stack Trace:


[InvalidOperationException: Sequence contains no matching element]
   System.Linq.Enumerable.First(IEnumerable`1 source, Func`2 predicate) +396
   ASP.portals_villa_properties_property_list_aspx.__RenderContent4(HtmlTextWriter __w, Control parameterContainer) in e:\w1\Apps5\CMS_IMO\Villa\Portals\Villa\Properties\Property\List.aspx:83
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +276
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   ASP.portals_villa_skins_main_list_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in e:\w1\Apps5\CMS_IMO\Villa\Portals\Villa\Skins\Main-list.Master:190
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +276
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +169
   System.Web.Mvc.ViewPage.Render(HtmlTextWriter writer) +75
   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.4110.0