索引和长度必须引用该字符串内的位置。参数名: length 您所在的位置:网站首页 中商集团地址电话查询 索引和长度必须引用该字符串内的位置。参数名: length

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

2024-07-09 16:17| 来源: 网络整理| 查看: 265

“/”应用程序中的服务器错误。 索引和长度必须引用该字符串内的位置。参数名: length 说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

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

源错误:

行 61: { 行 62: //Response.Write(nid.Substring(0,4)); 行 63: string s = string.Format("select * from zngroups where gid like '{0}%' and isweb='0'", nid.Substring(0, 4)); 行 64: 行 65: DataTable dt = DbHelperSQL.Query(s).Tables[0]; 源文件: d:\jhgc\Master\MasterPage2.master.cs    行: 63

堆栈跟踪:

[ArgumentOutOfRangeException: 索引和长度必须引用该字符串内的位置。 参数名: length] System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +10083940 Master_MasterPage2.ImgBind() in d:\jhgc\Master\MasterPage2.master.cs:63 Master_MasterPage2.Page_Load(Object sender, EventArgs e) in d:\jhgc\Master\MasterPage2.master.cs:32 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.Control.LoadRecursive() +191 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428 版本信息: Microsoft .NET Framework 版本:2.0.50727.5466; ASP.NET 版本:2.0.50727.5456


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有