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 51:                 Next
Line 52:                 If unique Then
Line 53:                     litRelated.Text &= String.Format("<li><a href=""{0}"">{1}</a></li>", result(t).QuickLink, result(t).Title)
Line 54:                     ids(position) = t
Line 55:                     position += 1

Source File: C:\inetpub\wwwroot\golfbusiness.com\wwwpub\controls\relatedArticles.ascx.vb    Line: 53

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   controls_relatedArticles.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\golfbusiness.com\wwwpub\controls\relatedArticles.ascx.vb:53
   System.Web.UI.Control.OnLoad(EventArgs e) +133
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2444


Version Information: Microsoft .NET Framework Version:2.0.50727.8762; ASP.NET Version:2.0.50727.8762