Server Error in '/' Application.

Index 0 is either negative or above rows count.

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: Index 0 is either negative or above rows count.

Source Error:


Line 205:                ZoneLinks ="<li class=""inactive"">" & MyView(0)("zonename") & "</li>"
Line 206:            else
Line 207:                ZoneLinks ="<li class=""selected""><span style=""float:left"">" & MyView(0)("zonename") & "</strong>" & "</span><a href="""& getquerystring("zone","0") &"""><img src=""/images/x.png"" width=""15"" height=""15"" border=""0"" alt=""Καθαρισμός φίλτρου"" /></a></li>"
Line 208:            end if
Line 209:            pagetitle &=  MyView(0)("zonename") & " - "

Source File: C:\inetpub\wwwroot\athinoramaclub\UserControls\Club\Kentra.ascx    Line: 207

Stack Trace:


[IndexOutOfRangeException: Index 0 is either negative or above rows count.]
   System.Data.DataView.GetRow(Int32 index) +6267951
   System.Data.DataView.get_Item(Int32 recordIndex) +16
   ASP.Kentra_filters_club.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\athinoramaclub\UserControls\Club\Kentra.ascx:207
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.8813; ASP.NET Version:2.0.50727.8813