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 513:            + "     , a2.amministratori_usern                              AS itemAutore "
Line 514:            + getItemListWhereCond(cat_id)).Tables[0];
Line 515:        System.Data.DataRow itemDettDR = itemDettDT.Select("ID = " + item_id)[0];
Line 516:        itemAutore_Literal.Text = itemDettDR["itemAutore"].ToString();
Line 517:        todDate_Literal.Text = myFunc.getTodayDate(lang, itemDettDR["time_stamp"].ToString());

Source File: c:\inetpub\wwwroot\poderespazzavento\contenuti3.aspx.cs    Line: 515

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   _contenuti3.getItemDetail(String cat_id, String item_id, String lang) in c:\inetpub\wwwroot\poderespazzavento\contenuti3.aspx.cs:515
   _contenuti3.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\poderespazzavento\contenuti3.aspx.cs:61
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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