I read a tutorial here: http://allen-conway-dotnet.blogspot.co.uk/2012/07/using-basic-authentication-in-rest.html?_sm_au_=iFVksVM0H8QrkntP to implement user authentication in the WCF service, but I get the following error:
The authentication schemes configured on the host ('Anonymous') do not allow those configured
on the binding 'WebHttpBinding' ('Basic'). 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 element, by updating the ClientCredentialType property on the binding, or by
adjusting the AuthenticationScheme property on the HttpTransportBindingElement.
I tried disabling "Anonymous Authentication" in the project, but then all I get is Error 401 - Unauthorized. Unable to enter username and password. Does anyone know why this problem may occur and how to fix it?
source
share