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 4:      Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Line 5:          Dim dv As Data.DataView = CType(ProductDetailsDataSource.Select(DataSourceSelectArguments.Empty), Data.DataView)
Line 6:          Dim dr As Data.DataRowView = dv(0)
Line 7:          Page.Title = dr("Τίτλος").ToString
Line 8:      End Sub

Source File: D:\InetPub\Virtual_Servers\212_2265\ekdoseispapadimitriou.gr\wwwroot\ProductDetails.aspx.vb    Line: 6

Stack Trace:


[IndexOutOfRangeException: Index 0 is either negative or above rows count.]
   System.Data.DataView.GetRow(Int32 index) +5306777
   System.Data.DataView.get_Item(Int32 recordIndex) +12
   Details.Page_Load(Object sender, EventArgs e) in D:\InetPub\Virtual_Servers\212_2265\ekdoseispapadimitriou.gr\wwwroot\ProductDetails.aspx.vb:6
   System.Web.UI.Control.OnLoad(EventArgs e) +92
   System.Web.UI.Control.LoadRecursive() +54
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772


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