Server Error in '/' Application.

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

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.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Source Error:


Line 72:                         m = "<center><span style='color:maroon;font-size:18px;font-weight:bold;'>No Recod Found.</span></center>";
Line 73:                     }
Line 74:                     List<Comments> b = Comments.GetComments(0, balist[0].Id, 1, ConValues.DefaultDate, ConValues.DefaultDate, 0, 10);
Line 75:                     if (b.Count > 0)
Line 76:                     {

Source File: C:\Inetpub\vhosts\visuallive.in\httpdocs\News.aspx.cs    Line: 74

Stack Trace:


[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) +69
   System.Collections.Generic.List`1.get_Item(Int32 index) +12737333
   NewsDetails.Page_Load(Object sender, EventArgs e) in C:\Inetpub\vhosts\visuallive.in\httpdocs\News.aspx.cs:74
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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