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 9559:        public vpg_pagesRow this[int index] {
Line 9560:            get {
Line 9561:                return ((vpg_pagesRow)(this.Rows[index]));
Line 9562:            }
Line 9563:        }

Source File: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\9cc3aa20\d4767e67\App_Code.0czfkhzh.6.cs    Line: 9561

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2519522
   System.Data.DataRowCollection.get_Item(Int32 index) +20
   vpg_pagesDataTable.get_Item(Int32 index) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\9cc3aa20\d4767e67\App_Code.0czfkhzh.6.cs:9561
   heb_Default2.Page_Load(Object sender, EventArgs e) in d:\hostingspaces\kfarrupp\kfar-ruppin.org.il\wwwroot\heb\Default2.aspx.cs:40
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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