Discuz!NT官方社区

首页 » Discuz!NT交流与讨论 » BUG 反馈 » 帖子页面时不时出现错误!!555
wzcff - 2008-6-24 8:48:00
其他页面都没问题 帖子页面时不时一天或者两天 就出现下面的错误 需要重新生成模版或者重启IIS才能解决!!为什么呢 帮忙看下呀
Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
  <system.web>
      <compilation debug="true"/>
  </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]  Discuz.Forum.TopicStats.GetStoredTopicViewCount(Int32 tid) +69  Discuz.ForumPage.showtopic.ShowPage() +1908  Discuz.Web.UI.Pages.BasePage..ctor() +4042  Discuz.ForumPage.showtopic..ctor() +263  ASP.aspx_1_showtopic_aspx..ctor() +9  __ASP.FastObjectFactory_app_web_mio3yjlw.Create_ASP_aspx_1_showtopic_aspx() +20  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() +128  System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +161
戏水 - 2008-6-24 9:25:00
抱歉,单就您目前提供的这些信息 ,我还不能确定问题所在 。 可否提供更详细的信息 呢?
wzcff - 2008-6-24 15:46:00
谢谢你!!这个是我的论坛地址 http://bbs.66xq.com/ 其他页面都重来不会出现问题 就是查看帖子那个 老是出错!
我怀疑是不是程序升级了而数据库还是老版本呢?
1
查看完整版本: 帖子页面时不时出现错误!!555