Server Error in '/practice' Application.

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

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.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Source Error:


Line 44: 	<div id="h2_d1" class="col-3-12">
Line 45:        <div class="content">
Line 46: 			<a href="<%=ar[9] %>">
Line 47: 				<img border="0" src="/images/<%=lbllogo.Text %>" alt="Orthodontie1.ch Logo" width="250" height="130" />
Line 48: 				<asp:Label ID="lbllogo" runat="server" Visible="False"></asp:Label>

Source File: h:\root\home\ortho1-001\www\orthodontie1\practice\UserControl\NEW_Header.ascx    Line: 46

Stack Trace:


[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.Collections.ArrayList.get_Item(Int32 index) +12906457
   ASP.usercontrol_new_header_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in h:\root\home\ortho1-001\www\orthodontie1\practice\UserControl\NEW_Header.ascx:46
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +270
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +14
   System.Web.UI.Control.Render(HtmlTextWriter writer) +12
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +67
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +101
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +27
   ASP.patientregistration_aspx.__Renderform(HtmlTextWriter __w, Control parameterContainer) in h:\root\home\ortho1-001\www\orthodontie1\practice\PatientRegistration.aspx:274
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +270
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +9840022
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +55
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +67
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +101
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +43
   ASP.patientregistration_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in h:\root\home\ortho1-001\www\orthodontie1\practice\PatientRegistration.aspx:218
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +270
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +14
   System.Web.UI.Page.Render(HtmlTextWriter writer) +30
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +67
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +101
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +27
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1342


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