“/”应用程序中的服务器错误。

新万博manbetx官网登录_manbetx官网万博官网_manbetx官网手机登陆

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.ArgumentOutOfRangeException: 新万博manbetx官网登录_manbetx官网万博官网_manbetx官网手机登陆

源错误:


行 61:                   int startIndex = url.LastIndexOf('/') + 1;
行 62:                   int endIndex = url.LastIndexOf('.');
行 63:                   url = url.Substring(startIndex, (endIndex - startIndex));                         
行 64:                 %>
行 65:                 <li class="<%=url.ToLower().Contains("default") ? "on" : ""%>"><a href=""default.aspx">首页</a></li>                      

                  

源文件: f:\dongtai\qianhuiglass.com\master\main.Master    行: 63

堆栈跟踪:


[ArgumentOutOfRangeException: 长度不能小于 0。
参数名: length]
   System.String.Substring(Int32 startIndex, Int32 length) +12947988
   ASP.master_main_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in f:\dongtai\qianhuiglass.com\master\main.Master:63
   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
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +129
   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


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.3761.0