SOAP 요청을하는 웹 서비스가 있습니다. VS.NET 2008에서 디버깅하는 동안 비누 요청이 성공적입니다. 그러나 배포 할 때 다음 오류가 발생합니다.기본 연결이 닫혔습니다 : SSL/TLS 보안 채널에 대한 트러스트 관계를 설정할 수 없습니다.
내부 연결이 닫혔습니다 : SSL/TLS 보안 채널에 대한 트러스트 관계를 설정할 수 없습니다.
이것은 변경해야 할 보안 설정 일 수 밖에 없지만 무엇을 모르는가요?
내가 가진 코드를 배포하는 것을 시도했다 :
System.Security.Cryptography.X509Certificates.X509Certificate 인증서 = NULL; cert = new System.Security.Cryptography.X509Certificates.X509Certificate(); cert.Import ("c : \ customerCertFile.cer"); objRequest.ClientCertificates.Add (cert);
// WebProxy iBproxy = new WebProxy ("196.2.124.252", true); WebProxy iBproxy = 새 WebProxy ("192.1.1.1", true); iBproxy.Credentials = new NetworkCredential ("username", "password"); objRequest.Proxy = iBproxy;
행운을 비네.
미리 감사드립니다.