状况1:
全新安装 Discuz!NT 2.0.1214 之后,运行正常。清空数据库数据,运行正常。回收应用程序池 ,报错如下:============================================================================================================
“/”应用程序中的服务器错误。
startIndex 不能大于字符串长度。
参数名: startIndex 说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.ArgumentOutOfRangeException: startIndex 不能大于字符串长度。
参数名: startIndex
源错误:
| 执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 |
堆栈跟踪:
[ArgumentOutOfRangeException: startIndex 不能大于字符串长度。 参数名: startIndex] System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +2819819 Discuz.Forum.Templates.GetValidTemplateIDList() +336 Discuz.Forum.HttpModule.ReUrl_BeginRequest(Object sender, EventArgs e) +492 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
|
版本信息: Microsoft .NET Framework 版本:2.0.50727.832; ASP.NET 版本:2.0.50727.832
==================================================================================================================
状况2:
论坛升级 Discuz!NT 2.0.1214 之后,运行正常。回收应用程序池 ,报错如下:
================================================================================================================
“/”应用程序中的服务器错误。 未将对象引用设置到对象的实例。 说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。
源错误:
源文件: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\fce1cf02\9b57e754\App_Web_aqfc0-oj.5.cs 行: 0
堆栈跟踪:
[NullReferenceException: 未将对象引用设置到对象的实例。] Discuz.Web.UI.Pages.BasePage..ctor() +3423 Discuz.ForumPage.forumindex..ctor() +56 ASP.aspx_1_forumindex_aspx..ctor() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\fce1cf02\9b57e754\App_Web_aqfc0-oj.5.cs:0 __ASP.FastObjectFactory_app_web_aqfc0_oj.Create_ASP_aspx_1_forumindex_aspx() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\fce1cf02\9b57e754\App_Web_aqfc0-oj.28.cs:0 System.Web.Compilation.BuildResultCompiledType.CreateInstance() +49 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +115 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31 System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40 System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139 System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +120 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
|
版本信息: Microsoft .NET Framework 版本:2.0.50727.832; ASP.NET 版本:2.0.50727.832
===============================================================================================================
应当算是一个BUG 吧!!