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 785:                if (cat_name != "")
Line 786:                {
Line 787:                    System.Data.DataTable cat_DT = myOp.DB_Read(""
Line 788:                    + " SELECT j8.contenuti_categorie_nome_" + lang + " AS catName"
Line 789:                    + " FROM contenuti_categorie as j8 "

Source File: c:\inetpub\wwwroot\la-stazione.it\contenuti.aspx.cs    Line: 787

Stack Trace:


[IndexOutOfRangeException: Cannot find table 0.]
   System.Data.DataTableCollection.get_Item(Int32 index) +113
   _contenuti.rootREP_ItemDataBound(Object sender, RepeaterItemEventArgs e) in c:\inetpub\wwwroot\la-stazione.it\contenuti.aspx.cs:787
   System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs e) +139
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +193
   System.Web.UI.WebControls.Repeater.AddDataItemsIntoItemsArray(IEnumerable dataSource, Boolean useDataSource) +116
   System.Web.UI.WebControls.Repeater.PostGetDataAction(IEnumerable dataSource) +109
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +81
   _contenuti.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\la-stazione.it\contenuti.aspx.cs:74
   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.4700.0