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 132:        dsetArticle = objArticle.FEArticleRelatedGetAll();
Line 133:
Line 134:        if (dsetArticle.Tables[0].Rows.Count > 0)
Line 135:        {
Line 136:            strHtml += "<tr><td class='HeaderRelationArticle' colspan='2'><b>" + objLanguage.GetLanguage("FE.ARTICLE_DETAIL.NEWS", dsetLang) + "</b></td></tr>";

Source File: c:\home\cviwr.vn\httpdocs\Modules\article\article_view.ascx.cs    Line: 134

Stack Trace:


[IndexOutOfRangeException: Cannot find table 0.]
   System.Data.DataTableCollection.get_Item(Int32 index) +81
   Modules_article_view.ViewNextArticle() in c:\home\cviwr.vn\httpdocs\Modules\article\article_view.ascx.cs:134
   Modules_article_view.ArticleDetail() in c:\home\cviwr.vn\httpdocs\Modules\article\article_view.ascx.cs:79
   Modules_article_view.Page_Load(Object sender, EventArgs e) in c:\home\cviwr.vn\httpdocs\Modules\article\article_view.ascx.cs:31
   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.4676.0