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 171:        cmd.Parameters.AddWithValue("@condition", condition);
Line 172:        cmd.Parameters.AddWithValue("@web", web);
Line 173:        return SQLDatabase.GetData(cmd);
Line 174:    }
Line 175:    #endregion

Source File: d:\vhosts\pro27.tatthanh.vn\congdoandlvn.org.vn\App_Code\Developer\Extension\RewriteExtension.cs    Line: 173

Stack Trace:


[IndexOutOfRangeException: Cannot find table 0.]
   System.Data.DataTableCollection.get_Item(Int32 index) +81
   TatThanhJsc.Database.SQLDatabase.GetData(OleDbCommand cmd) +628
   RewriteExtension.GetItemsByTitle(String title, String condition) in d:\vhosts\pro27.tatthanh.vn\congdoandlvn.org.vn\App_Code\Developer\Extension\RewriteExtension.cs:173
   LoadCode.GetItemsOrGroupsInfoByTitle() in d:\vhosts\pro27.tatthanh.vn\congdoandlvn.org.vn\LoadCode.ascx.cs:215
   LoadCode.Page_Load(Object sender, EventArgs e) in d:\vhosts\pro27.tatthanh.vn\congdoandlvn.org.vn\LoadCode.ascx.cs:126
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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