您的位置:远景无限博客 >> 论坛 >> Server 2008 [初级应用] >> 查看帖子
字体: 小 中 大
xuxlun 发表于: 2008-11-07 22:59 来源: 远景无限博客
学生中心.JPG
学生中心2.JPG
最新回复
--------------------------------------------------------------------------------
StartIndex 不能小于 0。
参数名: startIndex
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.ArgumentOutOfRangeException: StartIndex 不能小于 0。
参数名: startIndex
源错误:
行 80: {
行 81: string eMailString = curUser.Email.Trim();
行 82: if (eMailString.Substring(eMailString.Length - 7) == ".edu.cn")
行 83: {
行 84: lbl_Content.Text = "<b>请确认你的</b>.edu.cn<b>邮箱地址</b>,<b>或者输入正确的</b>.edu.cn<b>邮箱地址。</b>";
源文件: d:\MSU wwwroot\skins\MSU.Module.DirectDownload\MailBoxConfirmView.ascx.cs 行: 82
堆栈跟踪:
[ArgumentOutOfRangeException: StartIndex 不能小于 0。
参数名: startIndex]
System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +7490863
System.String.Substring(Int32 startIndex) +17
DirectDownload_MailBoxConfirmView.Page_Load(Object sender, EventArgs e) in d:\MSU wwwroot\skins\MSU.Module.DirectDownload\MailBoxConfirmView.ascx.cs:82
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.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.3053; ASP.NET 版本:2.0.50727.3053
开始报错了,看来后台没改好