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 125:                //if(search.Entries.Count > 0)
Line 126:                {
Line 127:                    var school = search.Entries[0];
Line 128:
Line 129:                    //schoolAddress = school.Field8 + " " + school.Field9 + " " + school.Field10 + " " + 

Source File: c:\home\site\wwwroot\App_Code\EntryParser.cs    Line: 127

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   CallSite.Target(Closure , CallSite , Object , Int32 ) +167
   EntryParser.DownloadNewEntries() in c:\home\site\wwwroot\App_Code\EntryParser.cs:127
   ASP._Page_Default_cshtml.Execute() in c:\home\site\wwwroot\Default.cshtml:66
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +197
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +69
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +114
   System.Web.WebPages.StartPage.RunPage() +17
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +64
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +78
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +116


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