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 51: 
Line 52: 
Line 53:             List<News> lsm= new NewsService().GetAllNews(kind, "view", cNews);
Line 54:             if(kind>1)
Line 55:             {

Source File: d:\hostingspaces\tolounews.com\httpdocs\newsArchive.aspx.cs    Line: 53

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) +6298694
   System.Linq.Enumerable.OrderByDescending(IEnumerable`1 source, Func`2 keySelector) +83
   Service.NewsService.GetAllNews(Int32 type, String order, Int32 count) in H:\0001CMS\0007Web_Site_1401\1401_09_08_TolouNews\Service\NewsService.cs:232
   newsArchive.Bind() in d:\hostingspaces\tolounews.com\httpdocs\newsArchive.aspx.cs:53
   newsArchive.Page_Load(Object sender, EventArgs e) in d:\hostingspaces\tolounews.com\httpdocs\newsArchive.aspx.cs:16
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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