Server Error in '/' Application.

Cannot find table 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: Cannot find table 0.

Source Error:


Line 104:        Accord_Circular.SelectedIndex = 0
Line 105:        Accord_Circular.RequireOpenedPane = False
Line 106:        If ds.Tables(0).Rows.Count > 0 Then
Line 107:            For i = 0 To ds.Tables(0).Rows.Count - 1
Line 108:                Dim pane_1 As New AccordionPane

Source File: D:\Websites\CBCI_New\SundayReflectionsNew.aspx.vb    Line: 106

Stack Trace:


[IndexOutOfRangeException: Cannot find table 0.]
   System.Data.DataTableCollection.get_Item(Int32 index) +6299314
   SundayReflectionsNew.GetActiveReflections1(String type, String id) in D:\Websites\CBCI_New\SundayReflectionsNew.aspx.vb:106
   SundayReflectionsNew.Page_Load(Object sender, EventArgs e) in D:\Websites\CBCI_New\SundayReflectionsNew.aspx.vb:14
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062