Server Error in '/' Application.

There is no row at position 8.

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 8.

Source Error:


Line 569:		intIndex = intRandomNumber-1
Line 570:		for iloop = 0 to intMaxBanners - 1			
Line 571:			strID=DT.Rows(intIndex)("id")
Line 572:			if not isdbnull(DT.Rows(intIndex)("title")) then
Line 573:				strTitle=DT.Rows(intIndex)("title")

Source File: D:\inetpub\webs\sanvitolocaposiciliait\sanvito.inc.aspx    Line: 571

Stack Trace:


[IndexOutOfRangeException: There is no row at position 8.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +119
   System.Data.DataRowCollection.get_Item(Int32 index) +21
   ASP.index_aspx.display_banner(Object bannertype, Object intMaxBanners, Object iconlink2, Object iconlink3) in D:\inetpub\webs\sanvitolocaposiciliait\sanvito.inc.aspx:571
   ASP.index_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in D:\inetpub\webs\sanvitolocaposiciliait\center.inc.aspx:8
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +103
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +9
   System.Web.UI.Page.Render(HtmlTextWriter writer) +30
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +129
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +287
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +27
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5625


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