2016-06-22 1 views
0

많은 질문이 있습니다. 비슷한 질문이 있으시면 링크를 부탁드립니다.인스턴스를 찾을 수 없습니다. SQL, WCF 및 IIS

Windows Server 2012 R2 서버에 WCF를 게시하고 IIS를 사용하여 내 서비스를 호스팅했습니다.

서비스와 SQL 모두 잘 작동합니다. SQL에서 내 서비스를 통해 데이터를 호출하려고 할 때 문제가 발생합니다.이 오류가 발생합니다.

The server encountered an error processing the request. Please see the service help page for constructing valid requests to the service. The exception message is '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)'. See server logs for more details.

이유에 대한 의견이 있으십니까?

답변

0

확인 연결 문자열

else

수정/해결 방법/솔루션에 서버 이름 :

Step 1) Make sure SQL SERVER is up and the instance you try to connect is running. 

Step 2) Your system Firewall should not block SQL Server port.

Step 3) Go to Computer Management >> Service and Application >> SQL Server 2012 Configuration >> Network Configuration 

HELP

Help link

+0

add name = "DbConnection"connectionString = "데이터 원본 = servername; 초기 카탈로그 = MyDatabase; 보안 정보 유지 = False; 통합 보안 = SSPI; providerName = "System.Data.SqlClient"/> –

+0

IIS 또는 내 서비스의 내 연결 문자열에이를 추가해야합니까, 죄송합니다. –

+0

"데이터 원본 = 로컬 호스트" 대신 "데이터 원본 = MYSERVER \ MyInstance" –

관련 문제