查看: 551|回复: 0
|
Length cannot be less than zero. Parameter name: length
[复制链接]
|
|
本帖最后由 心雨 于 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 |
|
|
|
|
|
|
| |
本周最热论坛帖子
|