How to set only a single authentication scheme is used in WinHost?

Discussion in 'Site Programming, Development and Design' started by lijun, Nov 27, 2011.

  1. Hi.

    I got a SL4 and RIA application. Here is the error message I got from the Fiddler.

    [ServiceActivationException: The service '/Services/RedArmy-Web-AuthenticationService.svc' cannot be activated due to an exception during compilation. The exception message is: IIS specified authentication schemes 'Basic, 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..]


    I have implemented Forms authentication with cookie:

    <authentication mode="Forms">
    <forms name="TestAuthCookie" loginUrl="login.aspx" timeout="30">
    <credentials passwordFormat="Clear">
    <user name="1" password="1"/>
    <user name="2" password="2"/>
    </credentials>
    </forms>
    </authentication>
     
  2. You can either disable basic authentication by hand in your web.config

    <security>
    <authentication>
    <basicAuthentication enabled="false" />
    </authentication>
    </security>

    or

    You can disable basic authentication by connecting to IIS via IIS manager. If you are not familiar with IIS the following may help in disabling this feature.

    http://technet.microsoft.com/en-us/library/cc772009(WS.10).aspx
     
    Last edited by a moderator: Oct 14, 2015

Share This Page