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

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

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

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

源错误:


行 81:                         }
行 82:                         string doc_href = "";
行 83:                         if (ds.Tables[2].Rows[0]["channel_id"].ToString().Substring(0, 2) == "XZ")
行 84:                             doc_href = "downloads.aspx?doc=" + ds.Tables[2].Rows[0]["doc_code"].ToString();
行 85:                         else

源文件: d:\wanlink_new\info\controls\ct_maga_month02.ascx.cs    行: 83

堆栈跟踪:


[ArgumentOutOfRangeException: 索引和长度必须引用该字符串内的位置。
参数名: length]
   System.String.Substring(Int32 startIndex, Int32 length) +14599300
   controls_ct_maga_month02.Page_Load(Object sender, EventArgs e) in d:\wanlink_new\info\controls\ct_maga_month02.ascx.cs:83
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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