回复:startIndex 不能大于字符串长度。请问如何处理.谢谢.
我也有这样的问题,,盼回,,
startIndex 不能大于字符串长度。
参数名: startIndex
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.ArgumentOutOfRangeException: startIndex 不能大于字符串长度。
参数名: startIndex
源错误:
执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
堆栈跟踪:
[ArgumentOutOfRangeException: startIndex 不能大于字符串长度。
参数名: startIndex]
System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +2819819
System.String.Substring(Int32 startIndex) +17
Discuz.Forum.TemplateFactory.GetValidTemplateIDList() +524
Discuz.Forum.HttpModule.ReUrl_BeginRequest(Object sender, EventArgs e) +509
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64