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 147:                                                             Count_Filter_Db:=Count_Filter_Db, ID_TXT:=vbNullString, Random_Read:=False,
Line 148:                                                             Distinct_Db:=vbNullString)
Line 149:            Select Case Temp_Random.Rows(0)(24) 'mas arkei mono mia grammi afou olos o pinaks temp tha exei i land i sea
Line 150:                Case Is = "Land" : Color_Group = 3 : Rand = 100 'Image_Group = Rand.Next(0, 1) 'land 0 - 1
Line 151:                Case Is = "Sea" : Color_Group = 2  ' Image_Group = Rand.Next(2, 3) 'sea 2 - 3

Source File: D:\INETPUB\VHOSTS\corfuactivities.com\httpdocs\corfu_activities_eidos.aspx.vb    Line: 149

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2140712
   System.Data.DataRowCollection.get_Item(Int32 index) +22
   csla_eidos.Proetoimase_Body_Background(String Eidos_TXT, String[]& Filter_Db, Byte& Count_Filter_Db, Byte& Dark_Color_Index, Byte& Light_Color_Index) in D:\INETPUB\VHOSTS\corfuactivities.com\httpdocs\corfu_activities_eidos.aspx.vb:149
   csla_eidos.Page_Load(Object Sender, EventArgs e) in D:\INETPUB\VHOSTS\corfuactivities.com\httpdocs\corfu_activities_eidos.aspx.vb:83
   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.4700.0