3 / 3 / 1
Регистрация: 15.09.2011
Сообщений: 104
|
||||||
1 | ||||||
Ошибка "A network-related or instance-specific error occurred while establishing a connection to SQL Server"11.06.2012, 20:12. Показов 24071. Ответов 3
Метки нет (Все метки)
Привет всем, читаю книгу Сандерсона по MVC 2. Делаю пример как в книге, но вот проблемка: выскакивает ошибка:
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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) Line 26: public ViewResult List(int page) Line 27: { Выскакивает ошибка в этом блоке Line 28: return View(booksRepository.Books.Skip((page - 1) * PageSize).Take(PageSize).ToList()); !!! Line 29: } Line 30: Вот код
0
|
11.06.2012, 20:12 | |
Ответы с готовыми решениями:
3
A network-related or instance-specific error occurred while establishing a connection to SQL Server A network-related or instance-specific error 40 Хостинг сайта: error occurred while establishing a connection to SQL Server A connection was successfully established with the server, but then an error occurred during the pre-login handshake |
0 / 0 / 0
Регистрация: 28.06.2013
Сообщений: 6
|
|
27.02.2014, 15:27 | 2 |
У меня выскакивает та же ошибка как и у 0xDC, однако когда я подключаюсь к базе данных (SQL Server 2012) :
TITLE: Connect to Server ------------------------------ Cannot connect to INFINITY. ------------------------------ ADDITIONAL INFORMATION: 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2) For help, click: http://go.microsoft.com/fwlink... nkId=20476 ------------------------------ The system cannot find the file specified ------------------------------ BUTTONS: OK ------------------------------ Подскажите пожалуйста что делать !? Вчера всё было нормально. А сегодня вот эта ошибка. Единственное что произошло со вчерашнего дня (особенного) мой Windiws 8.1 сделал запрос на перезагрузку после очередного обновления и в этот раз "приставал" ко мне чтоб я ему ввёл Microsoft Account. Может ли тут присутствовать какая то связь ?!?!?
0
|
Кодогенератор
200 / 200 / 51
Регистрация: 15.06.2011
Сообщений: 794
|
|
28.02.2014, 11:03 | 3 |
проверь в проекте в источниках данных-подключения - подключение к своей базе данных, там при выборе пункта изменить в менюшку будет пункт проверить подключение, надо его проверить - возможно при обновлении изменились настройки сервера или доступа.
0
|
0 / 0 / 0
Регистрация: 28.06.2013
Сообщений: 6
|
|
28.02.2014, 23:42 | 4 |
Спасибо за ответ. Однако всё оказалось серьёзней.
Вчера увидел в настройках Services and Applications что у меня ДВА SQL Server Configuration Manager. Короче после обновления появились накладки, их стало два. В Disc Management есть задвоение диска с Recovery. С RegEdit тоже какой то беспорядок. В общем буду делать сброс всего, на голый Win. И всё настраивать заново. Acronis был не настроен. А точка восстановления пуста. Всё накрылось (((
0
|
28.02.2014, 23:42 | |
28.02.2014, 23:42 | |
Помогаю со студенческими работами здесь
4
An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify Error establishing a database connection Error establishing a database connection при установке Error establishing a database connection - постоянно возникает на впс? PHP Warning: SQL error: Unable to complete network request to host 'ex000'. Failed to establish a connection. Access is denied Ошибка в JDBC и SQL Server: Not associated with a trusted SQL Server connection. Error while trying to run project: Unable to start debugging on the web server. Server-side error occurred on sending debug HTTP request. Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |