Server Error in '/' Application.

There is no row at position 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: There is no row at position 0.

Source Error:


Line 1215:
Line 1216:        'listing all data
Line 1217:        ListingMainDataRow = objDataset.Tables("Listing").Rows(0)
Line 1218:
Line 1219:        'current listing

Source File: C:\home\site\wwwroot\App_Code\Context\CurrentContext.vb    Line: 1217

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +125
   System.Data.DataRowCollection.get_Item(Int32 index) +19
   CurrentContext.LoadCommercialListingsWithAllDetails(Int32 CurrentListingID) in C:\home\site\wwwroot\App_Code\Context\CurrentContext.vb:1217
   Listings_CommercialListingDetail.Page_Init1(Object sender, EventArgs e) in C:\home\site\wwwroot\Listings\CommercialListingDetail.aspx.vb:202
   System.Web.UI.Control.OnInit(EventArgs e) +99
   System.Web.UI.Page.OnInit(EventArgs e) +16
   System.Web.UI.Control.InitRecursive(Control namingContainer) +454
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1719


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