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 294:            Dim hotelmes As String = ""
Line 295:            Dim diasetmana As Integer = 0
Line 296:            For Each dia As System.Data.DataRow In calDS.Tables(0).Rows
Line 297:                If mes <> Month(dia("data")) Then
Line 298:                    If Not primer Then

Source File: W:\webs\letsgobarcelona.com\Establiment.aspx.vb    Line: 296

Stack Trace:


[IndexOutOfRangeException: Cannot find table 0.]
   System.Data.DataTableCollection.get_Item(Int32 index) +113
   Establiment.Page_Load(Object sender, EventArgs e) in W:\webs\letsgobarcelona.com\Establiment.aspx.vb:296
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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