Server Error in '/Portal' 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 232:			StringBuilder sb = new StringBuilder(/* od.AppRelativeTemplateSourceDirectory + " * " +  od.TemplateSourceDirectory */);
Line 233:			Hashtable ht = new Hashtable();
Line 234:			ht.Add("date-0", ((DateTime)OpenPositionsDates.Rows[0]["date"]).ToString("dd.MM"));
Line 235:			ht.Add("date-1", ((DateTime)OpenPositionsDates.Rows[1]["date"]).ToString("dd.MM"));
Line 236:			ht.Add("date-2", ((DateTime)OpenPositionsDates.Rows[2]["date"]).ToString("dd.MM"));

Source File: c:\globes\wwwroot\Portal\nagish\uc\OptionsData.ascx.cs    Line: 234

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +119
   System.Data.DataRowCollection.get_Item(Int32 index) +21
   globes.UserControls.OptionsData.tab_3(OptionsData od) in c:\globes\wwwroot\Portal\nagish\uc\OptionsData.ascx.cs:234
   globes.UserControls.OptionsData.html(OptionsData od) in c:\globes\wwwroot\Portal\nagish\uc\OptionsData.ascx.cs:100
   globes.UserControls.finance_Nagish.Page_Load(Object sender, EventArgs e) in c:\globes\wwwroot\Portal\nagish\uc\finance_Nagish.ascx.cs:146
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
   System.Web.UI.Control.OnLoad(EventArgs e) +79
   System.Web.UI.Control.LoadRecursive() +130
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2849


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