Server Error in '/factExtractor' 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 2:  <html>
Line 3:  	<head runat="server">
Line 4:  		<title><%# DocumentRow["document_title"] %></title>
Line 5:  		<style type="text/css">
Line 6:  			* { padding: 0px; margin: 0px; font-family: Verdana, Arial, Tahoma, Geneva, Helvetica, sans-serif; }

Source File: d:\Users\RCO.FX.Web\Web\Document.aspx    Line: 4

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +1551206
   System.Data.RBTree`1.get_Item(Int32 index) +19
   System.Data.DataRowCollection.get_Item(Int32 index) +11
   RCO.FactExtractor.Web.DAL.Document_GetByID(Int32 id) in D:\Projects\RCO\FXWebDemo\Web\Components\DAL.cs:1459
   RCO.FactExtractor.Web.DocumentPage.get_DocumentRow() in D:\Projects\RCO\FXWebDemo\Web\Document.aspx.cs:19
   ASP.document_aspx.__DataBind__control4(Object sender, EventArgs e) in d:\Users\RCO.FX.Web\Web\Document.aspx:4
   System.Web.UI.Control.OnDataBinding(EventArgs e) +99
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +92
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.Control.DataBind() +15
   RCO.FactExtractor.Web.DocumentPage.OnLoad(EventArgs e) in D:\Projects\RCO\FXWebDemo\Web\Document.aspx.cs:33
   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.3662; ASP.NET Version:2.0.50727.3668