Discuz!NT官方社区

首页 » Discuz!NT交流与讨论 » 数据转换 » 无法浏览帖子
swons_x - 2007-4-16 14:13:00
你好,我使用的是NT版本。我从Dvbbs 7.1 sql server转换数据后。浏览帖子时不能显示帖子的具体内容。我使用的是sql server 2005
戏水 - 2007-4-16 14:51:00
我在dnt的官方论坛上 数据转换区有faq
请看 http://nt.discuz.net/showtopic-9397.html
另外 文档中心 有转换文档 :)

特别提醒 : 转换后一定要登录后台运行 论坛数据维护 里面的各个项目
swons_x - 2007-4-16 14:59:00
运行完后台更新后,再去前台浏览。出现下面错误:
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>
戏水 - 2007-4-16 15:48:00
修改webconfig文件<configuration>节 为 下面样子
<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>
然后吧真实的出错信息 发上来看看
戏水 - 2007-4-16 15:49:00
另外看看iis的.net framework版本 和你所使用的Dnt版本 是否一致!
目前转换程序比较稳定, 常规转换过都没问题的
请仔细检查
戏水 - 2007-4-16 15:50:00
如果还不行 pm我你服务器的远程桌面 我给你看看!!
swons_x - 2007-4-16 17:53:00
版本相同.什么叫真实错误?怎么看?
swons_x - 2007-4-16 17:58:00
修改webconfig后的错误:


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

Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
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.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.

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:


[SqlException (0x80131904): Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.]
  System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +735059
  System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
  System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error) +556
  System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj) +164
  System.Data.SqlClient.TdsParserStateObject.ReadPacket(Int32 bytesExpected) +34
  System.Data.SqlClient.TdsParserStateObject.ReadBuffer() +30
  System.Data.SqlClient.TdsParserStateObject.ReadByte() +17
  System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +59
  System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +31
  System.Data.SqlClient.SqlDataReader.get_MetaData() +62
  System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +297
  System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +886
  System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +132
  System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
  System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +122
  System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +12
  System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +7
  System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +141
  System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +137
  System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +86
  Discuz.Common.Database.ExecuteDataset(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) +257
  Discuz.Common.Database.ExecuteDataset(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) +201
  Discuz.Common.Database.ExecuteDataset(CommandType commandType, String commandText) +44
  Discuz.Forum.ForumFactory.GetForumIndexList(Int32 fid, Int32 hideprivate, Int32 usergroupid, Int32 moderstyle, Int32& topiccount, Int32& postcount, Int32& todaycount) +229
  Discuz.Forum.ForumFactory.GetDefalutForumIndexList(Int32 hideprivate, Int32 usergroupid, Int32 moderstyle, Int32& topiccount, Int32& postcount, Int32& todaycount) +51
  Discuz.ForumPage.index.ShowPage() +1028
  Discuz.Forum.BasePage..ctor() +6214
  Discuz.ForumPage.index..ctor() +89
  ASP.aspx_1_index_aspx..ctor() +10
  __ASP.FastObjectFactory_app_web_fvtfdkpo.Create_ASP_aspx_1_index_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() +120
  System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
戏水 - 2007-4-17 9:16:00
pm我你服务器的远程桌面 我给你看看吧
1
查看完整版本: 无法浏览帖子