2012-11-02 3 views
0

입니다.이 오류를 해결하는 방법에 대한 여러 사이트를 방문 했으므로 오류를 해결할 수 없습니다. SSL을 사용하는 IIS 6에서 호스팅하고 있습니다. 아래는 나의 구성입니다.바인딩 WSHttpBinding을 사용하여 끝점에 대한 구성표 http와 일치하는 기본 주소를 찾을 수 없습니다. 등록 된 기본 주소 체계는 [https]

<services> 
      <service behaviorConfiguration="UsernamePasswordBehavior" name="DataServices.BEService">  

       <endpoint address="mex" binding="mexHttpsBinding" name="mex" contract="IMetadataExchange" listenUri="https://mysite/beservice.svc"/> 

       <endpoint address="wsbe" binding="wsHttpBinding" bindingConfiguration="wsHttpWithUsernamePassword" 
        name="BEwsHttp" contract="DataServices.IBEService" listenUri="https://mysite/beservice.svc" />    
      </service> 
</services> 

    <bindings>   
     <wsHttpBinding> 
        <binding name="wsHttpWithUsernamePassword" sendTimeout="00:06:00" receiveTimeout="00:06:00"> 
         <security mode="Message"> 
          <message clientCredentialType="UserName"/> 
          </security>      
        </binding> 
      </wsHttpBinding> 
     </bindings> 


    <behaviors> 
       <serviceBehaviors> 
        <behavior name="UsernamePasswordBehavior"> 
         <serviceMetadata httpsGetEnabled="true"/> 
         <serviceDebug includeExceptionDetailInFaults="true" />      
         <serviceCredentials> 
          <userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="DataServices.CustomUsernameValidator, DataServices" /> 
          <serviceCertificate findValue="*.mysite.com" storeLocation="LocalMachine" storeName="My" x509FindType="FindBySubjectName"/>       
         </serviceCredentials>          
        </behavior>     
       </serviceBehaviors> 
      </behaviors> 

누군가가 도와 줄 수 있습니다.

+0

IIS에서 http 지점을 제거하고 SSL 만 사용하려고 했습니까? – iMortalitySX

+0

SSL 설정에서'SSL Required' 플래그가 켜져 있습니까? –

+0

예, 'SSL 필요'가 IIS에 설정되어 있습니다. TCP 포트를 제거 할 수 없습니다. –

답변

0

호스팅하는 IIS 웹 사이트 인스턴스가 HTTPS (SSL)로만 구성되어있는 것처럼 들립니다. 웹 사이트 인스턴스를 마우스 오른쪽 단추로 클릭하고 "Edit Bindings ..."를 선택하십시오. 거기에 포트 80 (일반 HTTP)이 나열되어 있습니까? 또한 "SSL 설정"기능을 확인하여 "항상 필요함"옵션이 켜져 있지 않은지 확인하십시오. - 스택 오버플로 자체에서 가져옵니다. 구성에서 메시지 보안 만 사용하는 것처럼 작동 할 수 있으며 HTTPS/SSL이 아닌 주소가 사이트에 바인딩되어 있어야합니다. 로컬 컴퓨터에서 자체 서명 된 인증서를 사용할 때 코드가 작동 했습니까?

+0

예, dev에 자체 서명 한 인증서로 작동합니다. 이것은 IIS6이므로 메뉴가 약간 다릅니다. 디렉터리 보안> 보안 통신에서 보안 채널 필요 (SSL)가 선택되어 있는지 확인합니다. –

0

은 당신이 아니라 메시지보다, 보안 모드의

<security mode="TransportWithMessageCredential"> 

를 사용할 필요가 있다고 생각?