2014-04-10 7 views
0

내 웹 사이트에 SSL을 구성합니다 https://www.test.com. 나는 그것에 하나의 가상적인 내화성이있다 testwcf. 내가 https://www.test.com/testwcf/Common.svc으로 액세스 할 때. 메시지가 You have created a service.으로 표시되었지만 서비스중인 모든 방법에 액세스 할 때, 예를 들어 https://www.test.com/testwcf/Common.svc/select?id=1이 표시되면 The resource cannot be found. 오류가 발생합니다. http : http://www.test.com/testwcf/Common.svc/select?id=1과 같이 작동합니다. 아무도 나를이 문제를 해결하는 데 도움이 될 수 있습니다. 나https가 가상 계측을 위해 작동하지 않습니다

아래는 내 websconfg

당신은 전송 보안을 사용하는 서비스의 바인딩을 업데이트해야합니다
<services> 

    <service name="testwcf.Service1"> 
    <endpoint address="" 
       binding="basicHttpBinding" 
       bindingConfiguration="secureHttpBinding" 
       contract="testwcf.IService1"/> 

    <endpoint address="mex" 
       binding="mexHttpsBinding" 
       contract="IMetadataExchange" /> 
    </service> 
    </services> 
    <bindings> 
    <basicHttpBinding> 
    <binding name="secureHttpBinding"> 
     <security mode="Transport"> 
     <transport clientCredentialType="None"/> 
     </security> 
    </binding> 
    </basicHttpBinding> 
</bindings> 
    </system.serviceModel> 

답변

0

때문이다 나는 순 많이하지만, 아무것도 작업에 검색 할 수 있습니다. 다음과 같은 보안 바인딩을 추가하십시오.

<bindings> 
    <basicHttpBinding> 
    <binding name="secureHttpBinding"> 
     <security mode="Transport"> 
     <transport clientCredentialType="None"/> 
     </security> 
    </binding> 
    </basicHttpBinding> 
</bindings> 

그런 다음 해당 바인딩을 사용하도록 서비스 구성을 변경하십시오. http://msdn.microsoft.com/en-us/library/hh556232(v=vs.110).aspx

+0

에서

<services> <service name="MySecureWCFService.Service1"> <endpoint address="" binding="basicHttpBinding" bindingConfiguration="secureHttpBinding" contract="MySecureWCFService.IService1"/> <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" /> </service> </services> 

더 많은 정보는 내가 WCF의 applicaion의 내 webconfig이 추가하지만 당신은 당신의 웹 설정의 관련 섹션과 질문을 업데이트 할 수 –

+0

를 작동하지 않았다? – DoctorMick

+0

질문이 업데이트되었습니다. –