2013-10-03 4 views
1

iis 7.5를 실행하는 Windows Server 2008 R2에서 작업하고 있습니다. 내 WCF 서비스가 프레임 워크 4.0에서 실행 중입니다. 통합 파이프 라인을 실행하는 32 비트 앱.WCF 구성 및 인증 악몽

서비스가 익명 및 Windows 인증을 사용하는 가상 디렉터리에 있습니다.

HTTP 요청이 클라이언트 인증 방식 무단이다 : 나는 도메인에 계정에서 WCF 테스트 클라이언트와 연결하면

<system.serviceModel> 
<bindings> 
    <basicHttpBinding> 
    <binding name="MyBinding"> 
     <security mode="TransportCredentialOnly"> 
     <transport clientCredentialType="Windows" /> 
     </security> 
    </binding> 
    </basicHttpBinding> 
</bindings> 
<services> 
    <service name="MyWebservice.MyService" behaviorConfiguration="MyWebservice.MyServiceBehavior"> 
    <!-- Service Endpoints --> 
    <endpoint address="" binding="basicHttpBinding" bindingConfiguration="MyBinding" contract="MyWebservice.IMyService" /> 
    <endpoint address="mex" binding="basicHttpBinding" bindingConfiguration="MyBinding" contract="IMetadataExchange" /> 
    </service> 
</services> 
<behaviors> 
    <serviceBehaviors> 
    <behavior name="MyWebservice.MyServiceBehavior"> 
     <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --> 
     <serviceMetadata httpGetEnabled="true" /> 
     <!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information --> 
     <serviceDebug includeExceptionDetailInFaults="true" /> 
    </behavior> 
    </serviceBehaviors> 
</behaviors> 
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> 
</system.serviceModel> 

, 나는 다음과 같은 예외를 얻을 : 내 구성은 같다 '협상'. 서버에서 수신 한 인증 헤더가 '협상'되었습니다.

이 오류는 근본적으로 도움이되지 않습니다. 누구든지 내 길을 잘못 가르쳐 주실 수 있습니까?

답변

1

재부팅하여 오류를 수정했습니다. 언제 Windows에서 배울 것인가 ... 일이 끝나면 다시 부팅합니다.