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 297:        Dim dv As Data.DataView
Line 298:        dv = CType(srcEventDetails.Select(DataSourceSelectArguments.Empty), Data.DataView)
Line 299:        Dim dr As Data.DataRowView = dv(0)
Line 300:        Dim strEvent_Name As String = CStr(dr("Event_Name_1"))
Line 301:        Page.Header.Title = strEvent_Name & " – Chess Event Details on MACA"

Source File: G:\PleskVhosts\masschess.org\httpdocs\Events\Event_Details.aspx.vb    Line: 299

Stack Trace:


[IndexOutOfRangeException: Index 0 is either negative or above rows count.]
   System.Data.DataView.GetRow(Int32 index) +4880755
   System.Data.DataView.get_Item(Int32 recordIndex) +12
   Events_Event_Details.Page_Load(Object sender, EventArgs e) in G:\PleskVhosts\masschess.org\httpdocs\Events\Event_Details.aspx.vb:299
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   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.9061; ASP.NET Version:2.0.50727.9062