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 154:        cmd.Parameters.AddWithValue("@condition", condition);
Line 155:        cmd.Parameters.AddWithValue("@web", web);
Line 156:        return SQLDatabase.GetData(cmd);
Line 157:    }
Line 158:    #endregion

Source File: e:\Domain website\vietphuc.vn\App_Code\Developer\Extension\RewriteExtension.cs    Line: 156

Stack Trace:


[IndexOutOfRangeException: Cannot find table 0.]
   System.Data.DataTableCollection.get_Item(Int32 index) +113
   TatThanhJsc.Database.SQLDatabase.GetData(OleDbCommand cmd) +476
   RewriteExtension.GetItemsByTitle(String title, String condition) in e:\Domain website\vietphuc.vn\App_Code\Developer\Extension\RewriteExtension.cs:156
   _Default.GetItemsOrGroupsInfoByTitle() in e:\Domain website\vietphuc.vn\Default.aspx.cs:95
   _Default.Page_Load(Object sender, EventArgs e) in e:\Domain website\vietphuc.vn\Default.aspx.cs:51
   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