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 164:
Line 165:        DataTable dtDatasheet = new DataTable();
Line 166:        dtDatasheet = oUserDatasheetBLL.DataSheet_Fatalities_TerroristGroup_fatalities_SelectDataByTitle(Int16.Parse(hdnCountryId.Value), Int16.Parse(hdnZoneId.Value), Int16.Parse(hdnStateId.Value), Int16.Parse(hdnDistrictId.Value), year, group_nameArr[1]);
Line 167:
Line 168:        gvFatalityByTitle.DataSource = dtDatasheet;

Source File: d:\SATP_ORG\SATP\datasheetgroup\fatalities.aspx.cs    Line: 166

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   datasheetgroup_fatalities.BindData() in d:\SATP_ORG\SATP\datasheetgroup\fatalities.aspx.cs:166
   datasheetgroup_fatalities.Page_Load(Object sender, EventArgs e) in d:\SATP_ORG\SATP\datasheetgroup\fatalities.aspx.cs:61
   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.4081.0