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 86:                                         <%Next%>
Line 87:                                     <%Else%>
Line 88:                                             <%Dim teamsSubPlT As DataTable = dbh.GetData("select * from teamssubpl where teamssubplcanbeseen='True' and teamssub_id1=" & teamsSubT.Rows(0)("teamssubid1") & " order by teamssubplsort1")%>                                        <div class="col-md-12">
Line 89:                                             <%=teamsSubT.Rows(0)("teamssubdescription" & dbh.l)%>
Line 90:                                                 <%Dim im1 As String = Replace(dbh.GetFiles("/images/upload/teamssub" & teamsSubT.Rows(0)("teamssubid1") & "/")(0), "_thumb", "")%>

Source File: C:\Inetpub\vhosts\aona.gr\httpdocs\teams.aspx    Line: 88

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2441565
   System.Data.DataRowCollection.get_Item(Int32 index) +19
   ASP.teams_aspx.__RenderContent3(HtmlTextWriter __w, Control parameterContainer) in C:\Inetpub\vhosts\aona.gr\httpdocs\teams.aspx:88
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   ASP.site2_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in C:\Inetpub\vhosts\aona.gr\httpdocs\site2.master:220
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +250
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8753


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