0

Ошибка, связанная с сетью или конкретным экземпляром, при установлении соединения с SQL Server [закрыто]

3

Проблема с подключением к SQL Server в ASP.NET приложении

Я развернул свое ASP.NET веб-приложение на сайте somee.com, и когда я пытаюсь войти на этот сайт (ipc.somee.com), я получаю ошибку, связанную с сетью:

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)

Оригинал и происхождение исключения:

Произошло необработанное исключение во время выполнения текущего веб-запроса. Информацию о происхождении и местоположении исключения можно найти в приведенном ниже стек-трейсе.

Стек ошибок:

[SqlException (0x80131904): 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)]
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +5296071
   ...
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724

Вопросы:

  1. Почему возникает эта ошибка подключения к SQL Server?
  2. Что я могу сделать, чтобы она была устранена?
  3. Какие проверки или настройки необходимо выполнить на сервере SQL или в приложении?

Благодарю за любую помощь!

0 ответ(ов)

Чтобы ответить на вопрос, пожалуйста, войдите или зарегистрируйтесь