2017-09-28 2 views
-1

창 하늘빛 서버에 응용 프로그램을 호스팅했습니다. 내 데이터베이스 인스턴스도 창 하늘입니다.Azure 서버 - SQL 서버 연결 문제

언젠가 (항상) 나는 오류가 다음 무엇입니까 :이 오류를 일부 시간을 받고있는 이유

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: TCP Provider, error: 0 - An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.) ---> System.ComponentModel.Win32Exception: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full --- End of inner exception stack trace ---

당신이 조언을 기쁘게 수 없습니다.

답변

1

데이터베이스에 연결하는 번호가 (lots) 있습니까? 그렇다면 끝내 자마자 정상적으로 폐기 하시겠습니까? 그리고 DI가 관련되어 있습니까? EF 또는 다른 OR 매퍼를 사용합니까 아니면 ADO.NET을 통해 연결하고 있습니까? 아시다시피, 우리가 대답 할 수 있도록 도움을주기 위해 대답 할 수있는 몇 가지 질문이 있습니다 ...

재시도 기능을 구현하여 항상 Azure SQL (또는 실제로 Azure 구성 요소)을 사용할 수 없도록 준비해야합니다 기구. Retry service specific guidance 문서에서 시나리오에 적합한 것을 찾으십시오. 이에 대한 흥미로운 검색어는 Transient Fault Handling입니다.

+0

감사합니다. @Rick van den Bosch, EF를 사용하고 있습니다. 언젠가 항상이 오류가 발생합니다. –