我正在尝试将我的WCF服务配置为使用集成安全性的HTTPS运行,但无论我尝试什么,我总会得到同样的错误:
The authentication schemes configured on the host ('IntegratedWindowsAuthentication') do not allow those configured on the binding 'BasicHttpBinding' ('Anonymous'). Please ensure that the SecurityMode is set to Transport or TransportCredentialOnly
我的配置如下:
<serviceBehaviors>
<behavior>
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
<serviceAuthenticationManager authenticationSchemes="IntegratedWindowsAuthentication"/>
</behavior>
</serviceBehaviors>
<protocolMapping>
<add scheme="https" binding="basicHttpBinding" bindingConfiguration="myHttpsBinding" />
</protocolMapping>
<basicHttpBinding>
<binding name="myHttpsBinding">
<security mode="Transport">
<transport clientCredentialType="InheritedFromHost" />
</security>
</binding>
</basicHttpBinding>
</bindings>
我已经尝试过wsHttpBinding,basicHttpsBinding等,但我总是得到同样的错误。