The authentication schemes configured on the host (‘IntegratedWindowsAuthentication’)

By | April 26, 2017

The authentication schemes configured on the host (‘IntegratedWindowsAuthentication’) do not allow those configured on the binding ‘WS2007HttpBinding’ (‘Anonymous’).  Please ensure that the SecurityMode is set to Transport or TransportCredentialOnly.  Additionally, this may be resolved by changing the authentication schemes for this application through the IIS management tool, through the ServiceHost.Authentication.AuthenticationSchemes property, in the application configuration file at the <serviceAuthenticationManager> element, by updating the ClientCredentialType property on the binding, or by adjusting the AuthenticationScheme property on the HttpTransportBindingElement.

I got the following error in my WCF self hosting application, specifically while trying to host a SessionSecurityTokenCache service that uses ws2007HttpBinding.

It turns out that it was caused by the ServiceAuthenticationBehavior which has a property called AuthenticationSchemes.

See the altered behavior below.

Leave a Reply

Your email address will not be published. Required fields are marked *