Server Error in '/' Application.

Value cannot be null.
Parameter name: source

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.ArgumentNullException: Value cannot be null.
Parameter name: source

Source Error:


Line 1587:
Line 1588:    <div style="padding-right:5px">
Line 1589:<% foreach (var item in Model.sligler.OrderBy(o => o.LIGLER.SIRA))
Line 1590:   {
Line 1591:       var firstelement = true;%>

Source File: c:\KTFF\Views\HaberinDetayi\Index.aspx    Line: 1589

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: source]
   System.Linq.OrderedEnumerable`2..ctor(IEnumerable`1 source, Func`2 keySelector, IComparer`1 comparer, Boolean descending) +169
   System.Linq.Enumerable.OrderBy(IEnumerable`1 source, Func`2 keySelector) +80
   ASP.views_haberindetayi_index_aspx.__RenderContent2(HtmlTextWriter __w, Control parameterContainer) in c:\KTFF\Views\HaberinDetayi\Index.aspx:1589
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   ASP.views_shared_bos_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\b3a2dc25\1126e4f6\App_Web_bos.master.639c3968.bhyh9noi.0.cs:0
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +250
   System.Web.Mvc.ViewPage.Render(HtmlTextWriter writer) +75
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8753


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