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 12: 
Line 13: 
Line 14:     string s = textList[1];
Line 15:     string pageName = r.Replace(s, " ");
Line 16: }

Source File: c:\HostingSpaces\kcinstitutes\kcinstitutes.com\wwwroot\page.cshtml    Line: 14

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   ASP._Page_page_cshtml.Execute() in c:\HostingSpaces\kcinstitutes\kcinstitutes.com\wwwroot\page.cshtml:14
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +99
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +185
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +107
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +142


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