Wednesday, February 12, 2014

Authentication issues in WCF(IntegratedWindowsAuthentication, Anonymous', but the binding only supports specification of exactly one authentication scheme. Valid authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous.) on remote server

While hosting your Restful WCF Service on shared hosting you are more likely to get the error

IIS specified authentication schemes 'IntegratedWindowsAuthentication, Anonymous', but the binding only supports specification of exactly one authentication scheme. Valid authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. Change the IIS settings so that only a single authentication scheme is used.

To overcome this error we have to make a small change in our web.config file as
<system.servicemodel="">
    <bindings>
      <webhttpbinding>
        <binding>
          <security mode="None">
            <transport clientcredentialtype="Windows">
          </transport></security>
        </binding>
      </webhttpbinding>
    </bindings>
  </system>



This will disable security of your service & your service doesn't need authentication

No comments :

Post a Comment