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 72:         <%} %>
Line 73:         
Line 74:         <% else if (path.Contains("/mieszkania-sprzedaz") && Model.GetPager(PagerType.Short).First(p=>p.IsCurrent).Page ==0) { %>
Line 75:         <h2>Mieszkania na sprzedaż Kołobrzeg</h2>
Line 76:         <p>Szukając idealnego mieszkania, warto spojrzeć w przyszłość i odpowiedzieć sobie na pytanie, jaka nieruchomość będzie nas satysfakcjonować, ile ma mieć pokoi, w jakiej lokalizacji będzie się znajdować. Być może teraz wystarczyłby jeden pokój, ale czy nasza rodzina nie powiększy się za kilka lat? Kupno mieszkania to bardzo ważna decyzja w życiu każdego człowieka, dlatego nasze biuro nieruchomości chce wyjść Wam naprzeciw i zaproponować setki możliwości. W naszej ofercie znaleźć można mieszkania jednopokojowe, a nawet sześciopokojowe, które umieszczone są aż na kilku piętrach. Bogactwo naszej kolekcji ogłoszeń sprawi, że poszukiwania wymarzonego mieszkania, zakończą się sukcesem.</p>

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

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