MVC3部署到托管 - 现在工作了16天SQL错误

时间:2012-12-21 10:54:10

标签: c# sql asp.net-mvc-3

我已经构建了一个MVC3应用程序并将其部署到第三方托管。经过一些严肃的连接字符串之后,我终于设法将它连接到托管上的SQL DB,并且应用程序运行正常,允许MVC的所有功能(添加,更新,删除等)。< / p>

我离开网站运行了两周左右(无论是无变化),现在当我浏览它时,我收到以下错误(当自定义错误关闭时)。

> 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 如果我修复它会在两周后再次发生吗?

干杯。

1 个答案:

答案 0 :(得分:1)

如果它在过去两周内已成功部署并成功运行。托管服务提供商的问题一定存在问题。您可以在托管服务提供商的支持系统上打开票证。

下载副本并在本地环境中运行它并进行某些更改(db string等)并检查一切是否正常。

我相信,这是托管服务提供商的问题。