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 34:         End If
Line 35:         Dim dv As New DataView
Line 36:         dv.Table = source.Tables(0)
Line 37:         dv.RowFilter = "group='" & groupId.Replace("'", "") & "'"
Line 38: 

Source File: C:\Webovi\mojtv.net\evro-2016\controls\group.ascx.vb    Line: 36

Stack Trace:


[IndexOutOfRangeException: Cannot find table 0.]
   System.Data.DataTableCollection.get_Item(Int32 index) +113
   brazil_2014_controls_group.getGroupData(String groupId) in C:\Webovi\mojtv.net\evro-2016\controls\group.ascx.vb:36
   brazil_2014_controls_group.Page_Load(Object sender, EventArgs e) in C:\Webovi\mojtv.net\evro-2016\controls\group.ascx.vb:14
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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