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 309:        string str_link_end = "</a></li>";
Line 310:
Line 311:        string str_current_page_text = arrfullbody[t_pn-1];
Line 312:        
Line 313:        string str_to_show = "";

Source File: c:\inetpub\vhosts\indiaempire.com\httpdocs\article.aspx    Line: 311

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   ASP.article_aspx.DisplayPage(String fullbody) in c:\inetpub\vhosts\indiaempire.com\httpdocs\article.aspx:311
   ASP.article_aspx.__DataBind__control13(Object sender, EventArgs e) in c:\inetpub\vhosts\indiaempire.com\httpdocs\article.aspx:45
   System.Web.UI.Control.OnDataBinding(EventArgs e) +98
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +174
   System.Web.UI.Control.DataBindChildren() +246
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +191
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +172
   System.Web.UI.WebControls.Repeater.AddDataItemsIntoItemsArray(IEnumerable dataSource, Boolean useDataSource) +279
   System.Web.UI.WebControls.Repeater.PostGetDataAction(IEnumerable dataSource) +104
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +80
   ASP.article_aspx.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\indiaempire.com\httpdocs\article.aspx:275
   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.3535.0