Server Error in '/' Application.

Index was outside the bounds of the array.

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 was outside the bounds of the array.

Source Error:


Line 640:            + "     , a2.amministratori_usern                              AS itemAutore "
Line 641:            + getItemListWhereCond(cat_id)).Tables[0];
Line 642:        System.Data.DataRow itemDettDR = itemDettDT.Select("ID = " + item_id)[0];
Line 643:        // [controllo su nome prodotto alternativo => redirect]
Line 644:        string alt_item_name = myFunc.cleanForPath(itemDettDR["itemName_alt"].ToString());

Source File: c:\inetpub\wwwroot\magnanisposa\contenuti.aspx.cs    Line: 642

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   _contenuti.getItemDetail(String cat_id, String item_id, String lang) in c:\inetpub\wwwroot\magnanisposa\contenuti.aspx.cs:642
   _contenuti.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\magnanisposa\contenuti.aspx.cs:124
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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