Wcf security WCF配置和身份验证噩梦

Wcf security WCF配置和身份验证噩梦,wcf-security,Wcf Security,我正在使用运行iis 7.5的windows server 2008 r2。我的WCF服务正在framework 4.0上运行。运行集成管道的32位应用程序 服务位于启用了Annonymous和Windows身份验证的虚拟目录中。我的配置如下所示: <system.serviceModel> <bindings> <basicHttpBinding> <binding name="MyBinding"> <securi

我正在使用运行iis 7.5的windows server 2008 r2。我的WCF服务正在framework 4.0上运行。运行集成管道的32位应用程序

服务位于启用了Annonymous和Windows身份验证的虚拟目录中。我的配置如下所示:

<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>

当我从域上的帐户连接WCF测试客户端时,会出现以下异常:

HTTP请求未经客户端身份验证方案“协商”授权。从服务器接收的身份验证标头为“协商”


这个错误毫无帮助。有人能指出我的错误吗?

重新启动修复了错误。我什么时候才能学会,有了Windows。。。当事情失去意义时,重新启动。

重新启动修复了错误。我什么时候才能学会,有了Windows。。。当事情失去意义时,重新启动