Discuz!NT 2.5 beta下载测试
类库文档在线查看
Comsenz 招聘信息
首届Discuz!NT 模板大赛圆满结束
著名音乐网站SoGua网、分贝网
采用Discuz!NT搭建社区
FIFA Online2官网论坛使用Discuz!NT
游戏城寨论坛使用Discuz!NT搭建
要灌, 就灌有技术含量的水
一起交流学习ASP.net吧!
17套Discuz!NT界面模板提供下载
Discuz!NT后台截图先睹为快
Discuz!NT文档中心
用户整合说明文档
Discuz!NT亮相微软Tech-Ed 2007
Discuz!NT情景搞笑短片抢先看
1/1页1 跳转到查看:854
发新话题 回复该主题

Discuz!NT 2.0.1214 startIndex 不能大于字符串长度

Discuz!NT 2.0.1214 startIndex 不能大于字符串长度


状况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 吧!!

TOP

 

回复:Discuz!NT 2.0.1214 startIndex 不能大于字符串长度

您把原来数据库中表里的值给删掉了 自然会出错啊 。这可不是bug :)
看到的去帮我点那个google广告啊www.cnblogs.com/zjneter

TOP

 

回复:Discuz!NT 2.0.1214 startIndex 不能大于字符串长度

晕 我也是这样的问题 我还是新建的数据库呢

TOP

 
1/1页1 跳转到
发表新主题 回复该主题