佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 551|回复: 0

Length cannot be less than zero. Parameter name: length

[复制链接]
发表于 18-4-2016 03:48 PM | 显示全部楼层 |阅读模式
本帖最后由 心雨 于 18-4-2016 03:51 PM 编辑

要怎样解决这个问题? 救命

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length

Source Error:


Line 1002:                                if (pHomeMDB != ""
Line 1003:                                {
Line 1004:                                        servername = pHomeMDB.Substring(0, pHomeMDB.LastIndexOf(",CN=Servers");
Line 1005:                                        servername = servername.Substring(servername.LastIndexOf("="+1);
Line 1006:                                }


Source File: d:\NetModule\FrontEnd\Home_myoffice_SubModule\ezEmail\App_Code\ezWebBase.cs    Line: 1004

Stack Trace:


[ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length]
   System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +10082904
   Kaoni.ezStandard.ezWebBase.GetHomeServer(String pHomeMDB) in d:\NetModule\FrontEnd\Home_myoffice_SubModule\ezEmail\App_Code\ezWebBase.cs:1004
   Kaoni.ezStandard.ezWebBase.CreateUserInfo() in d:\NetModule\FrontEnd\Home_myoffice_SubModule\ezEmail\App_Code\ezWebBase.cs:181
   Kaoni.ezStandard.mail_list.Page_Load(Object sender, EventArgs e) in d:\NetModule\FrontEnd\Home_myoffice_SubModule\ezEmail\mail_list.aspx.cs:53
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.5420; ASP.NET Version:2.0.50727.5420
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 16-12-2024 10:55 PM , Processed in 0.117125 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表