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 48: 					string regione_id = myOp.get_field("select IDREG from L_provincie where PROVINCIAIT='" + provincia.Replace("'", "''") + "'");
Line 49: 					
Line 50: 					regione_url = myOp.get_field("select regioneit_url from v_regioni where ID=" + regione_id);
Line 51: 					
Line 52:                 }

Source File: d:\inetpub\webs\italiancosplaycom\eventicosplaycomuni.aspx.cs    Line: 50

Stack Trace:


[IndexOutOfRangeException: Cannot find table 0.]
   System.Data.DataTableCollection.get_Item(Int32 index) +93
   sm0ke.access_db_operations.sqlOperations.get_field(String field_name, String comandoSQL) +37
   sm0ke.access_db_operations.sqlOperations.get_field(String comandoSQL) +12
   _eventicosplacomuni.Page_Load(Object sender, EventArgs e) in d:\inetpub\webs\italiancosplaycom\eventicosplaycomuni.aspx.cs:50
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +43
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2602


Version Information: Microsoft .NET Framework Version:2.0.50727.9174; ASP.NET Version:2.0.50727.9175