0

IIS 6 で Web アプリケーションを公開した後、次のエラーが発生します

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) 

同じDB接続の開発サーバーで正常に動作します

私を助けてください

4

1 に答える 1

0

これには複数の問題がある可能性があります。しかし、基本的な問題は、Web サーバーが DB サーバーを見つけられないことです。

以下の手順を試して、正確な問題を特定してください

  1. DB サーバーは Web サーバーから ping 可能ですか?

  2. SQLサーバーへの接続中に正しいユーザーを提供していますか?

  3. 構成ファイルで指定したユーザー名を使用して、Web サーバーから DB サーバーに接続できますか?

上記のすべてを試して、結果をお知らせください。

于 2012-10-31T07:20:03.963 に答える