Server Error in '/' Application.

Cannot find table 1.

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 1.

Source Error:


Line 65:         try
Line 66:         {
Line 67:             dlResults.DataSource = setProperties.Tables[1];
Line 68:             dlResults.DataBind();
Line 69: 

Source File: d:\websites\oneforitcom\subsites\immodot.be\properties.aspx.cs    Line: 67

Stack Trace:


[IndexOutOfRangeException: Cannot find table 1.]
   System.Data.DataTableCollection.get_Item(Int32 index) +81
   properties.loadProperties(String order) in d:\websites\oneforitcom\subsites\immodot.be\properties.aspx.cs:67
   properties.Page_Load(Object sender, EventArgs e) in d:\websites\oneforitcom\subsites\immodot.be\properties.aspx.cs:56
   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.4690.0