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 37: 
Line 38:         // [patch per redirect vecchie url]
Line 39:         string sItemName = myFunc.cleanForPath(myOp.get_field("SELECT imbarcazioni_nomeBreve_" + lang + " FROM imbarcazioni WHERE ID = " + item_id + " "));
Line 40:         if (!sItemName.Equals(""))
Line 41:         {

Source File: c:\inetpub\wwwroot\toscanacharter\imbarcazioni.aspx.cs    Line: 39

Stack Trace:


[IndexOutOfRangeException: Cannot find table 0.]
   System.Data.DataTableCollection.get_Item(Int32 index) +113
   afterbit.access_db_operations.sqlOperations.get_field(String field_name, String comandoSQL) +53
   _imbarcazioni.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\toscanacharter\imbarcazioni.aspx.cs:39
   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