Discuz!NT官方社区

首页 » Discuz!NT交流与讨论 » 安装使用 » 我也是置顶问题
crave - 2008-5-12 7:17:00
在论坛搜了一下,很多人反映置顶存在部问题,但都没有很好的解决方案.不知道官方什么时候可以解决.
问题如下:置顶后帖子消失,web.aspx各种方法也试过了.TOPIC目录中带有几个后缀为.xml 的文件.

Server Error in '/' Application. Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File --><configuration>    <system.web>        <customErrors mode="Off"/>    </system.web></configuration>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File --><configuration>    <system.web>        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>    </system.web></configuration>
wysky - 2008-5-12 9:21:00
请按照提示修改Web.config的节点属性为 Off (区分大小写),再把详细错误信息发上来
crave - 2008-5-12 18:45:00
off后的显示

Server Error in '/' Application.
--------------------------------------------------------------------------------

Syntax error: Missing operand before 'Or' operator.
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.Data.SyntaxErrorException: Syntax error: Missing operand before 'Or' operator.

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:


[SyntaxErrorException: Syntax error: Missing operand before 'Or' operator.]
  System.Data.ExpressionParser.Parse() +1847
  System.Data.DataExpression..ctor(DataTable table, String expression, Type type) +124
  System.Data.Select..ctor(DataTable table, String filterExpression, String sort, DataViewRowState recordStates) +88
  System.Data.DataTable.Select(String filterExpression) +58
  Discuz.Forum.TopicAdmins.ResetTopTopicList(Int32 fid) +2528
  Discuz.Forum.TopicAdmins.SetTopTopicList(Int32 fid, String topiclist, Int16 intValue) +41
  Discuz.ForumPage.topicadmin.DoDisplayOrderOperation(AdminGroupInfo admininfo) +242
  Discuz.ForumPage.topicadmin.DoOperations(ForumInfo forum, AdminGroupInfo admininfo, Int32 reasonpm) +1310
  Discuz.ForumPage.topicadmin.ShowPage() +1036
  Discuz.Web.UI.Pages.BasePage..ctor() +4066
  Discuz.ForumPage.topicadmin..ctor() +295
  ASP.aspx_1_topicadmin_aspx..ctor() +10
  __ASP.FastObjectFactory_app_web_7c9fft1u.Create_ASP_aspx_1_topicadmin_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
crave - 2008-5-12 18:47:00
on后的显示

Server Error in '/' Application.
--------------------------------------------------------------------------------

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>
crave - 2008-5-13 6:57:00
顶顶
wysky - 2008-5-13 9:24:00
你是MYSQL版本的么?
请把dnt_forums表的数据截图贴一下吧
crave - 2008-5-14 7:25:00


引用:
原帖由 wysky 于 2008-5-13 9:24:00 发表
你是MYSQL版本的么?
请把dnt_forums表的数据截图贴一下吧



如何打开dnt_forums表
wysky - 2008-5-14 10:02:00
如果合适 请PM我你的数据库地址帐号和密码,我去帮你看看~
wysky - 2008-5-14 18:03:00
lz的论坛是mysql的版本吧...目前Discuz!NT的mysql在置顶的时候会遇到这个问题
请等待补丁修复吧
1
查看完整版本: 我也是置顶问题