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 11:         Dim LASD As clsLASD = New clsLASD
Line 12:         Dim dv As DataView = CType(ADS_NewsRelease.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Line 13:         Dim dr As DataRow = dv.Table.Rows(0)
Line 14:         Dim StationId As String = dr("UOA").ToString
Line 15:         Dim StationName As String = LASD.GetStationName(dr("UOA")).ToString

Source File: C:\Domains\shq.lasdnews.net\pages\PageDetail.aspx.vb    Line: 13

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +1548274
   System.Data.RBTree`1.get_Item(Int32 index) +19
   System.Data.DataRowCollection.get_Item(Int32 index) +11
   Pages_PageDetail.Page_Load(Object sender, EventArgs e) in C:\Domains\shq.lasdnews.net\pages\PageDetail.aspx.vb:13
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8000; ASP.NET Version:2.0.50727.8001