日期:2014-05-17  浏览次数:20646 次

远程主机强迫关闭了一个现有的连接
A connection was successfully established with the server, but then an error occurred during the pre-login handshake. 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: A connection was successfully established with the server, but then an error occurred during the pre-login handshake. 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 - 远程主机强迫关闭了一个现有的连接。)

Stack Trace: 


[SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the pre-login handshake. 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
  Discuz.Data.DbHelper.ExecuteDataset(DbConnection connection, CommandType commandType, String commandText, DbParameter[] commandParameters) in E:\WebSite\XcSoSo\Dz.BBS\Discuz.Data\DbHelper.cs:914
  Discuz.Data.DbHelper.ExecuteDataset(CommandType commandType, String commandText, DbParameter[] commandParameters) in E:\WebSite\XcSoSo\Dz.BBS\Discuz.Data\DbHelper.cs:875
  Discuz.Data.SqlServer.DataProvider.GetOnlineUser(Int32 userId, String passWord) +164
  Discuz.Data.OnlineUsers.GetOnlineUser(Int32 userid, String password) in E:\WebSite\XcSoSo\Dz.BBS\Discuz.Data\DataProvider\OnlineUsers.cs:130
  Discuz.Forum.OnlineUsers.GetOnlineUser(Int32 userid, String password) in E:\WebSite\XcSoSo\Dz.BBS\Discuz.Forum\OnlineUsers.cs:210
  Discuz.Forum.OnlineUsers.UpdateInfo(String passwordkey, Int32 timeout, Int32 uid, String passwd) in E:\WebSite\XcSoSo\Dz.BBS\Discuz.Forum\OnlineUsers.cs:373
  Discuz.Forum.OnlineUsers.UpdateInfo(String passwordkey, Int32 timeout) in E:\WebSite\XcSoSo\Dz.BBS\Discuz.Forum\OnlineUsers.cs:463
  Discuz.Forum.PageBase..ctor() in E:\WebSite\XcSoSo\Dz.BBS\Discuz.Forum\PageBase.cs:573
  _Default..ctor() in e:\wwwroot\xcsoso\web\Default.aspx.cs:44
  ASP.default_aspx..ctor() in c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7961dc14\ab41455b\App_Web_ic1en9d_.56.cs:0
  __ASP.FastObjectFactory_app_web_ic1en9d_.Create_ASP_default_aspx() in c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7961dc14\ab41455b\App_Web_ic1en9d_.82.cs:0
  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 contex