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 48:     {
Line 49:         DataSet ds = reading.intervals.Load_Week(dtStart);
Line 50:         DataRow dr = ds.Tables[0].Rows[0];
Line 51:         ltlStartDate.Text = ((DateTime)dr["DATE"]).ToShortDateString();
Line 52:         String strStartBook = (String)dr["START_BOOK"];

Source File: d:\OTHER_WEBS\read.fccwarsaw.com\site\reading\index.aspx.cs    Line: 50

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +1556314
   System.Data.DataRowCollection.get_Item(Int32 index) +20
   reading_index.LoadData() in d:\OTHER_WEBS\read.fccwarsaw.com\site\reading\index.aspx.cs:50
   reading_index.Page_Load(Object sender, EventArgs e) in d:\OTHER_WEBS\read.fccwarsaw.com\site\reading\index.aspx.cs:42
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +92
   System.Web.UI.Control.LoadRecursive() +54
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772


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