Server Error in '/' Application.

There is no row at position 12.

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

Source Error:


Line 87:                     Do
Line 88: 
Line 89:                         imgMain.ImageUrl = Master.fhGet.pageImage("", mainTBl.Rows(Rnd() * mainTBl.Rows.Count).Item("gameId"), "")
Line 90:                         rndCnt = rndCnt + 1
Line 91:                     Loop While imgMain.ImageUrl = "" And rndCnt < mainTBl.Rows.Count

Source File: D:\InetPub\vhosts\trufenix-1912.package\fightabase.com\wwwroot\seriesMain.aspx    Line: 89

Stack Trace:


[IndexOutOfRangeException: There is no row at position 12.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +125
   System.Data.DataRowCollection.get_Item(Int32 index) +19
   ASP.seriesmain_aspx.page_load() in D:\InetPub\vhosts\trufenix-1912.package\fightabase.com\wwwroot\seriesMain.aspx:89
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +154
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4082


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