0

MVC3アプリケーションを構築し、サードパーティのホスティングにデプロイしました。接続文字列などを真剣にいじった後、最終的にホスティング上のSQL DBに接続することができ、アプリケーションは正常に実行され、MVCのすべてのベルとホイッスルが機能するようになりました(追加、更新、削除など)。

Webサイトを2週間ほど実行するために(何も変更せずに)離れましたが、Webサイトを参照すると、次のエラーが発生します(カスタムエラーがオフになっている場合)。

> Server Error in '/' Application.
> 
> 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: SQL
> Network Interfaces, error: 26 - Error Locating Server/Instance
> Specified)
> 
> 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
> 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: SQL
> Network Interfaces, error: 26 - Error Locating Server/Instance
> Specified)
> 
> 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.

SQLデータベースへの接続に問題があることは知っていますが、知りたいのは、2週間の実行後になぜそれが発生したのかということです。そして、私がそれを修正した場合、それはさらに2週間後に再び起こりますか?

乾杯。

4

1 に答える 1

1

過去2週間、正常に展開および実行されている場合。ホスティングプロバイダー側​​に問題があるはずです。ホスティングプロバイダーのサポートシステムでチケットを開くことができます。

コピーをダウンロードして、特定の変更(db文字列など)を使用してローカル環境で実行し、すべてが正常かどうかを確認します。

これはホスティングプロバイダー側​​の問題だと思います。

于 2012-12-21T10:59:48.857 に答える