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 31:         DS = oEvent.SinglSelectePostrand(id);
Line 32: 
Line 33:         DT = DS.Tables[0];
Line 34: 
Line 35:         foreach (DataRow dr in DT.Rows)

Source File: c:\inetpub\vhosts\iscofitting.com\httpdocs\Singlepost.aspx.cs    Line: 33

Stack Trace:


[IndexOutOfRangeException: Cannot find table 0.]
   System.Data.DataTableCollection.get_Item(Int32 index) +113
   NewUser_Singlepost.displayDetail(String id) in c:\inetpub\vhosts\iscofitting.com\httpdocs\Singlepost.aspx.cs:33
   NewUser_Singlepost.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\iscofitting.com\httpdocs\Singlepost.aspx.cs:22
   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.4494.0