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 63:     <%} else { %><span class="notifyMsg"><%: Labels.NoOffers %></span><%} %>  
Line 64:         
Line 65:         <% if (path.Contains("/dzialki-sprzedaz") && Model.GetPager(PagerType.Short).First(p=>p.IsCurrent).Page ==0) { %>
Line 66:         <h2>Działki na sprzedaż nad morzem</h2>
Line 67:         <p>Pierwszym krokiem do wybudowania wymarzonego domu, jest podjęcie decyzji o kupnie działki. Wybór odpowiedniego terenu nie należy do łatwych, ponieważ pod uwagę musimy brać wiele kryteriów. Po nocach śni Ci się dom z ogródkiem, który umiejscowiony będzie blisko naszego magicznego, polskiego morza? Nasze biuro nieruchomości pomoże Ci postawić pierwszy krok ku spełnieniu tych marzeń. W naszej ofercie znaleźć można działki, które przeznaczone są pod budownictwo jednorodzinne wolnostojące, w zabudowie bliźniaczej lub szeregowej, działki mieszkaniowo-usługowe, a także działki rolne.</p>

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

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:65
   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