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

索引超出了数组界限。

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

异常详细信息: System.IndexOutOfRangeException: 索引超出了数组界限。

源错误:


行 61:             else
行 62:             {
行 63:                 var model = DbHelper.CurrentDb.Query("where typeid=5 and Title=@0 and isdel=0", path[2].ToStr()).ToList().First();
行 64:                 if (model != null)
行 65:                 {

源文件: d:\wwwweb\web\App_Code\UrlRewriteHelper.cs    行: 63

堆栈跟踪:


[IndexOutOfRangeException: 索引超出了数组界限。]
   UrlRewriteHelper.RewriteUrlPath(String reqPath) in d:\wwwweb\web\App_Code\UrlRewriteHelper.cs:63
   ASP.global_asax.Application_BeginRequest(Object sender, EventArgs e) in d:\wwwweb\web\Global.asax:45
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +139
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88


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