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 27: 
Line 28:             Dim dt As DataTable = wrSpettacoli.spdtSpettacoli(idSpettacolo)
Line 29:             Dim R As DataRow = dt.Rows(0)
Line 30: 
Line 31: 

Source File: C:\inetpub\wwwroot\www.teatroverdimontecatini.it.RESTYLING\scheda.aspx.vb    Line: 29

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2133215
   System.Data.DataRowCollection.get_Item(Int32 index) +21
   schedaAspx.caricaTesti() in C:\inetpub\wwwroot\www.teatroverdimontecatini.it.RESTYLING\scheda.aspx.vb:29
   schedaAspx.Page_Init(Object sender, EventArgs e) in C:\inetpub\wwwroot\www.teatroverdimontecatini.it.RESTYLING\scheda.aspx.vb:16
   System.Web.UI.Control.OnInit(EventArgs e) +95
   System.Web.UI.Page.OnInit(EventArgs e) +13
   System.Web.UI.Control.InitRecursive(Control namingContainer) +139
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +408


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