为了账号安全,请及时绑定邮箱和手机立即绑定

怎么“检查堆栈跟踪信息”

怎么“检查堆栈跟踪信息”

喵喔喔 2018-11-15 08:05:03
例如:[ArgumentOutOfRangeException: startIndex 不能大于字符串长度。 参数名: startIndex]    System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +7490931    System.String.Substring(Int32 startIndex) +17    WebApplication1._Default.Page_Load(Object sender, EventArgs e) in F:\test\WebApplication1\Default.aspx.cs:19    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35    System.Web.UI.Control.OnLoad(EventArgs e) +99    System.Web.UI.Control.LoadRecursive() +50    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627 希望哪位大哥给个详细的解释,或者给个链接,我没找着相关资料。
查看完整描述

1 回答

?
墨色风雨

TA贡献1853条经验 获得超6个赞

问题应该是出在 Page_Load 函数中。

我判断你在这个函数中使用了 str.Substring(xxx) ,而这个 xxx 大于了 str.Length-1


查看完整回答
反对 回复 2018-11-21
  • 1 回答
  • 0 关注
  • 626 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号