Server Error in '/' Application.

There is no row at position 0.

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.IndexOutOfRangeException: There is no row at position 0.

Source Error:


Line 34:                 "~End~" + gp.iEnd.ToString());
Line 35: 
Line 36:         DataRow dr = ds.Tables[0].Rows[0];
Line 37:         CBMCore.Data.DataTablePhotoThumbsValidate(ds.Tables[0], "directory", "profile");
Line 38:         CBMCore.Data.DataTablePhotoThumbsValidate(ds.Tables[1], "directory", "profile");

Source File: d:\INETPUB\theportofentry.com\DatingSite\Forums\post.aspx.cs    Line: 36

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2541686
   System.Data.DataRowCollection.get_Item(Int32 index) +20
   DatingSite_Forums_post.BuildGrid(Int32 iPage) in d:\INETPUB\theportofentry.com\DatingSite\Forums\post.aspx.cs:36
   DatingSite_Forums_post.BuildPage() in d:\INETPUB\theportofentry.com\DatingSite\Forums\post.aspx.cs:19
   DatingSite_Forums_post.Page_Load(Object sender, EventArgs e) in d:\INETPUB\theportofentry.com\DatingSite\Forums\post.aspx.cs:13
   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.9220.0