2

リモートSQLサーバーにasp.netメンバーシップシステムをインストールしようとしていますが、次のエラーが表示されます:

セットアップに失敗しました。

例外: SQL Server データベースに接続できません。


失敗の詳細

System.Web.HttpException (0x80004005): Unable to connect to SQL Server database. ---> System.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - The wait operation timed out.) ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.ConsumePreLoginHandshake(Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean& marsCapable)
   at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover)
   at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
   at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)
   at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions)
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.Open()
   at System.Web.Management.SqlServices.GetSqlConnection(String server, String user, String password, Boolean trusted, String connectionString)
ClientConnectionId:24557c63-f9b1-498c-bd1d-0d678f29f795
   at System.Web.Management.SqlServices.GetSqlConnection(String server, String user, String password, Boolean trusted, String connectionString)
   at System.Web.Management.SqlServices.SetupApplicationServices(String server, String user, String password, Boolean trusted, String connectionString, String database, String dbFileName, SqlFeatures features, Boolean install)
   at System.Web.Management.ConfirmPanel.Execute()

vs2012からリモートSQLサーバーに接続する際に同じ問題があります

4

1 に答える 1

0

この問題は、次の条件の 1 つ以上に該当する場合に発生することがあります。

  • SQL Server がリモート接続を受け入れるように構成されていません。
  • SQL Server コンピューターまたは BizTalk Server を実行している SQL Server クライアント コンピューターで、SQL Server に必要なプロトコルが有効になっていません。

次の手順に従うと、この問題が解決する場合があります。

  • SQL Server Surface Area Configurationツールは、SQL Server 2008 では使用できません。SQL Server 2008 コンピューターで SQL Server のリモート接続を有効にするには、SQL Server 2008 のオンライン ヘルプの手順に従ってください。

  • SQL Server 構成マネージャーツールを使用して、SQL Server コンピューターでTCP/IP名前付きパイププロトコルを有効にします。

    1. [スタート]をクリックし、[すべてのプログラム]をポイントして、[ SQL Server 構成マネージャー] をクリックします。

    2. [ SQL Server ネットワーク構成] をクリックして展開し、[ MSSQLSERVER のプロトコル] をクリックします。

    3. TCP/IPプロトコルを右クリックし、[有効にする] をクリックします。

    4. 名前付きパイププロトコルを右クリックし、[有効にする] をクリックします。

    5. SQL Server 構成マネージャーツールを閉じます。

  • SQL Server 構成マネージャーツールを使用して、BizTalk Server を実行している SQL Server クライアント コンピューターでTCP/IP名前付きパイププロトコルを有効にします。

    1. [スタート]をクリックし、[すべてのプログラム]をポイントして、[ SQL Server 構成マネージャー] をクリックします。

    2. [ SQL Server ネットワーク構成]をクリックして展開し、[ ClientProtocols ] をクリックします。

    3. TCP/IPプロトコルを右クリックし、[有効にする] をクリックします。

    4. 名前付きパイププロトコルを右クリックし、[有効にする] をクリックします。

    5. SQL Server 構成マネージャーツールを閉じます。

注: BizTalk Server を実行している SQL Server クライアント コンピューターのプロトコルの少なくとも 1 つが、SQL Server コンピューターで有効になっているプロトコルと一致していることを確認してください。

于 2014-09-22T14:26:31.187 に答える