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 22:         cmd.Parameters.AddWithValue("@condition", condition);
Line 23:         cmd.Parameters.AddWithValue("@web", web);
Line 24:         return SQLDatabase.GetData(cmd);
Line 25:     }
Line 26:     public static DataTable GetGroupsLangByTitle(string title, string condition)

Source File: g:\pleskvhosts\108.webbaomat.vn\hoithuyvietnam.tatthanh.net\App_Code\Developer\OptimizeRewriteTitle.cs    Line: 24

Stack Trace:


[IndexOutOfRangeException: Cannot find table 0.]
   System.Data.DataTableCollection.get_Item(Int32 index) +113
   TatThanhJsc.Database.SQLDatabase.GetData(OleDbCommand cmd) +654
   OptimizeRewriteTitle.GetGroupsByTitle(String title, String condition) in g:\pleskvhosts\108.webbaomat.vn\hoithuyvietnam.tatthanh.net\App_Code\Developer\OptimizeRewriteTitle.cs:24
   OptimizeRewriteTitle.GetIgidCate2(String title, String lang, String enable) in g:\pleskvhosts\108.webbaomat.vn\hoithuyvietnam.tatthanh.net\App_Code\Developer\OptimizeRewriteTitle.cs:148
   _Default.GetTitleInfo(String& igid, String& iid) in g:\pleskvhosts\108.webbaomat.vn\hoithuyvietnam.tatthanh.net\Default.aspx.cs:208
   _Default.Page_Load(Object sender, EventArgs e) in g:\pleskvhosts\108.webbaomat.vn\hoithuyvietnam.tatthanh.net\Default.aspx.cs:57
   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