Server Error in '/' Application.

Index and length must refer to a location within the string.
Parameter name: length

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 and length must refer to a location within the string.
Parameter name: length

Source Error:


Line 39:         </div>
Line 40:         <ul id="fs_nav">
Line 41:             <li <%=returnclasslihover("1")%>><a <%=returnclasslihover2("11")%>   href="/index.aspx">
Line 42:                 首页</a></li>
Line 43:             <li <%=returnclasslihover("2")%>><a <%=returnclasslihover2("22")%> href="/about/index.aspx?cid=101032001001">

Source File: f:\KINGTOP.WEB\Controls\head\head.ascx    Line: 41

Stack Trace:


[ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length]
   System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +12681525
   KingTop.WEB.Controls.head.head.returnclasslihover(String num) +887
   ASP.controls_head_head_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in f:\KINGTOP.WEB\Controls\head\head.ascx:41
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +131
   ASP.about_index_aspx.__Renderform1(HtmlTextWriter __w, Control parameterContainer) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\8566e4d1\5d36a400\App_Web_a1txfu3o.3.cs:0
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +131
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +315
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +48
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246
   System.Web.UI.Page.Render(HtmlTextWriter writer) +40
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5274


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