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 223:        engCategoria = ViewCategorie.Item(0).Item("eng_Categorie")
Line 224:        viewVociDaVisualizzare.RowFilter = "ID = '" & ID & "'"
Line 225:        engLuogo = viewVociDaVisualizzare.Item(0).Item("englishLuogo")
Line 226:        viewVociDaVisualizzare.RowFilter = Filtrogenerale
Line 227:        If ISO.Contains("Tutti gli ISO") = True Then

Source File: D:\inetpub\webs\milanofotografoit\FotografiaDettagliFoto.aspx    Line: 225

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
   ASP.fotografiadettaglifoto_aspx.Page_Load(Object sender, EventArgs e) in D:\inetpub\webs\milanofotografoit\FotografiaDettagliFoto.aspx:225
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   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.9174; ASP.NET Version:2.0.50727.9175