2012-12-21 31 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