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 127:    {
Line 128:        // [ricava l'elenco degli item disponibili -> per il livello di categoria corrente]
Line 129:        System.Data.DataSet itemDS = myOp.pag_DB_Read(""
Line 130:            + "SELECT it1.ID "
Line 131:            + "       , it1.time_stamp                                       AS itemData "

Source File: c:\inetpub\wwwroot\salvadori\comunicazioni.aspx.cs    Line: 129

Stack Trace:


[IndexOutOfRangeException: Cannot find table 0.]
   System.Data.DataTableCollection.get_Item(Int32 index) +113
   afterbit.access_db_operations.sqlOperations.Record_Count(String comandoSQL) +34
   afterbit.access_db_operations.sqlOperations.pag_DB_Read(String sql_comm, Int32 record_per_pag, String query_str, String pager_name, String order_by, String order_how) +323
   afterbit.access_db_operations.sqlOperations.pag_DB_Read(String sql_comm, Int32 record_per_pag, String pager_name) +50
   _comunicazioni.getItemList(String srcKey) in c:\inetpub\wwwroot\salvadori\comunicazioni.aspx.cs:129
   _comunicazioni.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\salvadori\comunicazioni.aspx.cs:45
   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.4676.0