首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET Framework >

请问,原来能打开的网页,现在出现如下提示,是服务器上哪设置不对?谢

2012-02-22 
请教,原来能打开的网页,现在出现如下提示,是服务器上哪设置不对?谢ServerErrorin/Application.-----------

请教,原来能打开的网页,现在出现如下提示,是服务器上哪设置不对?谢
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:  

An   unhandled   exception   was   generated   during   the   execution   of   the   current   web   request.   Information   regarding   the   origin   and   location   of   the   exception   can   be   identified   using   the   exception   stack   trace   below.    

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)   +735075
      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()   +642183
      System.Data.SqlClient.TdsParserStateObject.ReadByte()   +17
      System.Data.SqlClient.TdsParser.GetTokenLength(Byte   token,   TdsParserStateObject   stateObj)   +115
      System.Data.SqlClient.TdsParser.GetDataLength(SqlMetaDataPriv   colmeta,   TdsParserStateObject   stateObj)   +27
      System.Data.SqlClient.TdsParser.ProcessColumnHeader(SqlMetaDataPriv   col,   TdsParserStateObject   stateObj,   Boolean&   isNull)   +34
      System.Data.SqlClient.SqlDataReader.ReadColumnHeader(Int32   i)   +219
      System.Data.SqlClient.SqlDataReader.ReadColumn(Int32   i,   Boolean   setTimeout)   +134
      System.Data.SqlClient.SqlDataReader.GetValueInternal(Int32   i)   +17
      System.Data.SqlClient.SqlDataReader.GetValues(Object[]   values)   +181
      System.Data.ProviderBase.CommonLanguageSubsetDataReader.GetValues(Object[]   values)   +10


      System.Data.ProviderBase.SchemaMapping.LoadDataRow()   +30
      System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping   mapping)   +140
      System.Data.Common.DataAdapter.FillFromReader(DataSet   dataset,   DataTable   datatable,   String   srcTable,   DataReaderContainer   dataReader,   Int32   startRecord,   Int32   maxRecords,   DataColumn   parentChapterColumn,   Object   parentChapterValue)   +153
      System.Data.Common.DataAdapter.Fill(DataSet   dataSet,   String   srcTable,   IDataReader   dataReader,   Int32   startRecord,   Int32   maxRecords)   +172
      System.Data.Common.DbDataAdapter.FillInternal(DataSet   dataset,   DataTable[]   datatables,   Int32   startRecord,   Int32   maxRecords,   String   srcTable,   IDbCommand   command,   CommandBehavior   behavior)   +175
      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
      Morrowsoft.DB.DBOperator.ExecSqlForDataSet(String   QueryString)   +104
      Morrowsoft.Platform.Common.DataAccess.GetUsers()   +61
      ProposeReport.RequestList.AfterPopulatePage(DataSet   ds)   +298
      ProposeReport.RequestList.GoToPage(Int32   Page)   +54
      ProposeReport.RequestList.DoDataPage()   +57
      ProposeReport.RequestList.BindData()   +439
      ProposeReport.RequestList.Page_Load(Object   sender,   EventArgs   e)   +29
      System.EventHandler.Invoke(Object   sender,   EventArgs   e)   +0
      System.Web.UI.Control.OnLoad(EventArgs   e)   +99
      System.Web.UI.Control.LoadRecursive()   +47
      System.Web.UI.Page.ProcessRequestMain(Boolean   includeStagesBeforeAsyncPoint,   Boolean   includeStagesAfterAsyncPoint)   +1061

 


--------------------------------------------
Version   Information:   Microsoft   .NET   Framework   Version:2.0.50727.42;   ASP.NET   Version:2.0.50727.42

[解决办法]
原因1: web.config 文件不完整.不是合格的asp.net 配置文件.
解决: 您要检查web.config 是否合格,有时候是粗心,xml文件不完整.导致的问题
原因2: asp.net版本问题.asp.net有asp.net 1.1和 asp.net2.0 两个版本.

[解决办法]
IIS是ASP.NET1.1,你使用的是ASP.NET2.0

热点排行