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 373:            string slug = Util.TaxonomyProxy.getSlug(objContentType.Article, hfArticleID.Value.ToString(), "1");
Line 374:
Line 375:            hplLink.NavigateUrl = "/news/" + splitSlug[0] + "/" + splitSlug[1] + "/" + slug;
Line 376:        }
Line 377:    }

Source File: d:\wwwrootV4\SMA2020\Publications\searcharticlesma.aspx.cs    Line: 375

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   Publications_searcharticlesma.rptArticle_ItemDataBound(Object sender, RepeaterItemEventArgs e) in d:\wwwrootV4\SMA2020\Publications\searcharticlesma.aspx.cs:375
   System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs e) +111
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +138
   System.Web.UI.WebControls.Repeater.AddDataItemsIntoItemsArray(IEnumerable dataSource, Boolean useDataSource) +217
   System.Web.UI.WebControls.Repeater.PostGetDataAction(IEnumerable dataSource) +71
   System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +220
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +62
   System.Web.UI.WebControls.Repeater.DataBind() +77
   Publications_searcharticlesma.PopulateSearchAuthorList() in d:\wwwrootV4\SMA2020\Publications\searcharticlesma.aspx.cs:290
   Publications_searcharticlesma.Page_Load(Object sender, EventArgs e) in d:\wwwrootV4\SMA2020\Publications\searcharticlesma.aspx.cs:66
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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