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 17:             
Line 18:             If IsPostBack = False Then
Line 19:                 DataPages = DataBaseTools.GetDatatable_BySQL("select top 20 * from " & DB_NameTable & " order by ISort desc ", DataBaseTools.MSSQLDBConection, DataBaseTools.Database_Type, "")
Line 20:                 
Line 21:             End If

Source File: C:\HcciApp\arpages\PagesMagazine.aspx    Line: 19

Stack Trace:


[IndexOutOfRangeException: Cannot find table 0.]
   System.Data.DataTableCollection.get_Item(Int32 index) +81
   DataBaseTools.GetDatatable_BySQL(String SQLstr, String DBconn, String DBType, String UserId) +470
   ASP.arpages_pagesmagazine_aspx.Page_Load(Object sender, EventArgs e) in C:\HcciApp\arpages\PagesMagazine.aspx:19
   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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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