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

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

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

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

源错误:


行 19:         }
行 20: 
行 21:         DataSet ds = App.Select("select a.Ne_Pic,a.Ne_SubTitle,a.Ne_Gourl from TB_3D_List a join TB_3D_MenuClass b on a.Ne_AttUser=b.N_ID where b.N_Code='" + m.Substring(0, 6) + "' and a.Ne_Class=" + App.bannerID);
行 22:         ds.Dispose();
行 23:         if (ds.Tables[0].Rows.Count > 0)

源文件: c:\wwwroot\www.youtaidu.com\Ascx\Banner.ascx.cs    行: 21

堆栈跟踪:


[ArgumentOutOfRangeException: 索引和长度必须引用该字符串内的位置。
参数名: length]
   System.String.Substring(Int32 startIndex, Int32 length) +14342676
   ASCX_Banner.Page_Load(Object sender, EventArgs e) in c:\wwwroot\www.youtaidu.com\Ascx\Banner.ascx.cs:21
   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.4261.0