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

索引和长度必须引用该字符串内的位置。
参数名: length

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

异常详细信息: System.ArgumentOutOfRangeException: 索引和长度必须引用该字符串内的位置。
参数名: length

源错误:

执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

堆栈跟踪:


[ArgumentOutOfRangeException: 索引和长度必须引用该字符串内的位置。
参数名: length]
   System.String.Substring(Int32 startIndex, Int32 length) +13221311

[MethodInvocationException: Invocation of method 'substring' in  System.String threw exception System.ArgumentOutOfRangeException : 索引和长度必须引用该字符串内的位置。
参数名: length]
   NVelocity.Runtime.Parser.Node.ASTMethod.Execute(Object o, IInternalContextAdapter context) +3081
   NVelocity.Runtime.Parser.Node.ASTReference.Execute(Object o, IInternalContextAdapter context) +948
   NVelocity.Runtime.Parser.Node.ASTReference.Render(IInternalContextAdapter context, TextWriter writer) +155
   NVelocity.Runtime.Parser.Node.SimpleNode.Render(IInternalContextAdapter context, TextWriter writer) +115
   NVelocity.Template.Merge(IContext context, TextWriter writer) +253
   NVelocityTemplateEngine.Engines.NVelocityFileEngine.Process(IDictionary context, String templateName) +153
   Ctmon.Site.PageBase.GetTemplate(IDictionary context, String templateName, String tlpPath, Boolean json) in D:\2A-Asp\AAAA接收订单\Y-源创\Ctmon\Ctmon.Site\PageBase.cs:221
   Ctmon.Site.PageBase.DisplayTemplate(IDictionary context, String templateName, String tlpPath, Boolean json) in D:\2A-Asp\AAAA接收订单\Y-源创\Ctmon\Ctmon.Site\PageBase.cs:169
   Ctmon.Site.WebPage.DisplayTemplate(IDictionary context, String templateName, Boolean json) in D:\2A-Asp\AAAA接收订单\Y-源创\Ctmon\Ctmon.Site\WebPage.cs:216
   Ctmon.Site.WebPage.DisplayTemplate(IDictionary context, String templateName) in D:\2A-Asp\AAAA接收订单\Y-源创\Ctmon\Ctmon.Site\WebPage.cs:167
   Ctmon.Web.product.Page_Load(Object sender, EventArgs e) in D:\2A-Asp\AAAA接收订单\Y-源创\Ctmon\Ctmon.Web\goods.aspx.cs:217
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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