2012-12-30 243 views
2

我希望有人能帮助我解决这个问题。我在Visual Studio differente项目(网站),2010年。今天,当我尝试扩大在服务器资源管理器中的数据连接的数据库之一,我得到一个窗口,这个错误:SQL网络接口,错误:26 - 错误定位服务器

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.

的情况发生在所有我的项目。我想这是因为我昨天安装了卡巴斯基2012。请我需要帮助。

+0

我可以很容易想象,卡巴斯基与网络连接干扰Visual Studio试图打开连接到数据库。卸载它或设置允许连接的规则。无论如何,你的SQL Server在你的本地机器上还是在不同的机器上? – Codo

回答

2

可能会安装卡巴斯基停止的SQL Server服务。 在运行对话框中打开services.msc打开服务面板。 确保SQL Server服务的状态为已启动。 如果没有,请右键单击SQL Server并选择开始。

当然这是如果你使用Windows。

+0

你的回答真的帮了我。我的项目现在工作正常。非常感谢! :D – user1925034

+3

请标记为正确答案。谢谢... –

相关问题