.NET 3.5 응용 프로그램의 로그에 SqlException
이 표시되고 해당 번호 (속성 값 : SqlException.Number
)를 찾고 있습니다.올바르게 캐치하는 방법 : 전송 수준의 오류가 발생했습니다.
System.Data.SqlClient.SqlException: A transport-level error has occurred
when receiving results from the server. (provider: TCP Provider, error: 0
- The specified network name is no longer available.) at
System.Data.SqlClient.SqlConnection.OnError
:
이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.
사람이 제대로 그 예외를 포착하는 방법을 알고 있나요? (당신은 또한 대답을 게시 할 수 있습니다 here)
이 오류를 잡는 "안전한"방법은 무엇입니까? Windows Azure에서 응용 프로그램을 개발하고 있으며 이러한 종류의 오류는 재시도 정책에 의해 포착되어야합니다. –
'서버에서 결과를 수신 할 때'A 전송 수준 오류가 발생했습니다. '와 같은 오류 메시지를 구문 분석하고 적절하게 결정해야합니다. – Oded
흠, 정말 못 생겼어. 특히, 지역화 된 (프랑스어) 오류 메시지를 던지는 일이 내 컴퓨터에서 작동하지 않습니다 ... –