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 350:                                        <%=SimilarPropertiesCountString%>
Line 351:                                        more properties in
Line 352:                                        <%= char.ToUpper(thisProperty.Location.Name[0]) + thisProperty.Location.Name.Substring(1)%></a></p>
Line 353:                            </div>
Line 354:                            <div class="carousel_listings" id="mlt">

Source File: c:\inetpub\ftproot\Zoopla\Views\property\Details.aspx    Line: 352

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   System.String.get_Chars(Int32 index) +0
   ASP.views_property_details_aspx.__Render__control8(HtmlTextWriter __w, Control parameterContainer) in c:\inetpub\ftproot\Zoopla\Views\property\Details.aspx:352
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +250
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   ASP.views_property_details_aspx.__RenderContent4(HtmlTextWriter __w, Control parameterContainer) in c:\inetpub\ftproot\Zoopla\Views\property\Details.aspx:340
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +250
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +250
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8753


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