Server Error in '/' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 142:        catch (Exception ex)
Line 143:        {
Line 144:            throw ex;
Line 145:
Line 146:        }

Source File: C:\website\jagbani2023\trending_new.aspx.cs    Line: 144

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   _Default.fn_trending_news(Int32 page_size) in C:\website\jagbani2023\trending_new.aspx.cs:144
   _Default.Page_Load(Object sender, EventArgs e) in C:\website\jagbani2023\trending_new.aspx.cs:53
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1602


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