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 193: string[] breaks = _date.Split(‘/’); Line 194: if (breaks[0].Length < 2) breaks[0] = "0" + breaks[0]; Line 195: string[] _breaks = breaks[2].Split(' '); Line 196: string realdate = breaks[1] + "/" + breaks[0] + "/" + _breaks[0]; Line 197:

Source File: c:inetpubvhoststodayindya.comhttpdocsreview-description.aspx.cs    Line: 195

Stack Trace:

[IndexOutOfRangeException: Index was outside the bounds of the array.] review_description.GetDate(String _date) in c:inetpubvhoststodayindya.comhttpdocsreview-description.aspx.cs:195 ASP.review_description_aspx.__DataBind__control35(Object sender, EventArgs e) in c:inetpubvhoststodayindya.comhttpdocsreview-description.aspx:423 System.Web.UI.Control.OnDataBinding(EventArgs e) +100 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +178 System.Web.UI.Control.DataBindChildren() +248 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +195 System.Web.UI.WebControls.ListView.CreateItemsInGroups(ListViewPagedDataSource dataSource, Boolean dataBinding, InsertItemPosition insertPosition, ArrayList keyArray) +1647 System.Web.UI.WebControls.ListView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +918 System.Web.UI.WebControls.ListView.PerformDataBinding(IEnumerable data) +53 System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +208 System.Web.UI.WebControls.ListView.PerformSelect() +128 review_description.BindMore() in c:inetpubvhoststodayindya.comhttpdocsreview-description.aspx.cs:148 review_description.Page_Load(Object sender, EventArgs e) in c:inetpubvhoststodayindya.comhttpdocsreview-description.aspx.cs:42 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.4110.0

Source

Leave a Reply