Windows authentication for WCF web services error

Windows Identity WCF Web service authentication when deploying to IIS, default Web site to add the application. Browse run .svc file error.

error code:

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

Explanation: The
configuration of the host authentication scheme ( "integratedWindowsAuthentication") is not allowed in the binding "basichttpbinding" ( "anonymous") to configure these programs on. Make sure SecurityMode set to Transport or TransportCredentially. Additionally, you can solve this problem in the following ways: through IIS management tools, configuration properties file servicehost.authentication.authentication schemes by application (located in <serviceauthenticationmanager> element) change the authentication scheme of the application, is to update the tie ClientCredentialType on a given property or property by adjusting the AuthenticationScheme httpTransportBindingElement.

 

Solution one:

IIS select just the new application, the right function found in Windows authentication, anonymous authentication turned into points.

Browse run again, svc file, ok the.

 

Guess you like

Origin www.cnblogs.com/hofmann/p/11230909.html