Server Error in '/' Application.
--------------------------------------------------------------------------------An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: TCP Provider, error: 0 - 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。) 
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: An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: TCP Provider, error: 0 - 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。)Source Error: 
Line 49:  new SqlParameter("@Tag",m_tag)
Line 50:  };
Line 51:  using (SqlDataReader m_read = SqlHelper.ExecuteReader(SqlHelper.SqlConnStr, CommandType.Text, m_sql, parms))
Line 52:  {
Line 53: 
 Source File: d:\wz.csdn\rssfeed.aspx    Line: 51 Stack Trace: 
[SqlException (0x80131904): An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: TCP Provider, error: 0 - 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。)]
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +437
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
   System.Data.SqlClient.SqlConnection.Open() +111
   System.Data.SqlClient.SqlConnection.Open() +111
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +121
   myLib.SqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) +66
   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, String srcTable) +83
   myLib.SqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) +109
   ASP.rssfeed_aspx.Page_Load(Object sender, EventArgs e) in d:\wz.csdn\rssfeed.aspx:51
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1770
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +17
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +149
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
   System.Web.UI.WebControls.GridView.DataBind() +4
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
   System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +69
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
   System.Web.UI.Control.EnsureChildControls() +87
   System.Web.UI.Control.PreRenderRecursiveInternal() +41
   System.Web.UI.Control.PreRenderRecursiveInternal() +161
   System.Web.UI.Control.PreRenderRecursiveInternal() +161
   System.Web.UI.Control.PreRenderRecursiveInternal() +161
   System.Web.UI.Control.PreRenderRecursiveInternal() +161
   System.Web.UI.Control.PreRenderRecursiveInternal() +161
   System.Web.UI.Control.PreRenderRecursiveInternal() +161
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint
 

解决方案 »

  1.   

    passport好像有这个问题。还好BBS正常
      

  2.   

    难道大型的网站用.net真的不太好???
      

  3.   

    难道大型的网站用.net真的不太好???
      

  4.   

    难道大型的网站用.net真的不太好???
      

  5.   

    这应该是CSDN的失误,CSDN对于Application错误并没有屏蔽,而且自己定义了很多异常类型,来抛出大家都能看的明白的异常信息,而又不暴露程序的错误.这台服务器可能是因为开了Debug模式,而且这里的异常抛出的不是自定义的....
    程序员过于粗心汗一个~~~~~~~~~~~~~~~~~~~~~~~~
      

  6.   

    andyhooo(人就是活给自己看的) ( ) 信誉:100     
     
     
       难道大型的网站用.net真的不太好???=====================================================================没有什么不好,不管用什么技术做,做的人的水平高网站就移定....用多JAVA的网站也会报错,这个正常,而且CSDN的这个错误是因为数据库停了....不管用什么做,数据库停了,都是要出错的啊!
      
     
      

  7.   

    CSDN这也是行,错误信息直接就跑出来了,真是强人!
      

  8.   

    andyhooo(人就是活给自己看的) ( ) 信誉:100    Blog   加为好友  2007-06-15 10:09:10  得分: 0  
     
     
       难道大型的网站用.net真的不太好???
     
     
    ===============================================================================看看微软的网站
      

  9.   

    看看微软的网站---------------------------.net 是微软设计的.它的网站当然用到最好.但是还有很多人不了解的.
      

  10.   

    看看微软的网站---------------------------
    爆料:微软的网站用的java,只不过又采用了URL重写,看上去像.net闪人,不要扔板砖。