2012-12-21 50 views
0

我已經構建了一個MVC3應用程序並將其部署到第三方託管。經過一些嚴重的連接字符串擺弄之後,我終於設法讓它連接到主機上的SQL數據庫,並且應用程序運行良好,從而允許MVC的所有功能(添加,更新,刪除等)工作。MVC3部署到託管 - 現在工作16天SQL錯誤

我離開網站運行兩個星期左右(使沒有變化什麼都不),現在當我瀏覽它時,我得到以下錯誤(當自定義錯誤關閉時)。

> 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數據庫的問題,但我想知道的是爲什麼兩週運行完事後? AND如果我修復它會再發生兩個星期後再次發生?

乾杯。

+2

我認爲這是一個問題,要問你的第三方託管服務提供商。 –

+0

我發郵件給他們,只是等待回覆,所以我想在這裏問一下以防萬一。 – doreye01

回答

1

如果在過去兩週內部署並運行成功。託管服務提供商的結局必然存在問題。您可以在您的託管服務提供商的支持系統上打開一張票。

下載副本並在本地環境中運行一些更改(db字符串等)並檢查一切是否正常。

我相信,這是託管提供商的問題。

+0

一個小時後再次嘗試,它的工作,必須是託管。 – doreye01