title: Disabling Anonymous authentication for web application causes error
body: <p>I am trying to enable Windows authentication and disable anonymous authentication for an intranet application.  I have already enabled Windows authentication and disabled anonymous in IIS7, and set my Web.Config to use Windows authentication.</p>
  <pre><code>&lt;system.web&gt;
      &lt;authentication mode=&quot;Windows&quot; /&gt;
      &lt;compilation debug=&quot;true&quot; targetFramework=&quot;4.0&quot; /&gt;
  &lt;/system.web&gt;
  </code></pre>
  <p>When I deploy and run my application, only the page header will load.  When I navigate to my Service.svc file in Chrome or IE, I get the following error:</p>
  <blockquote>
  <p>Security settings for this service require 'Anonymous' Authentication but it is not enabled for the IIS application that hosts this service.</p>
  <p>System.NotSupportedException: Security settings for this service require 'Anonymous' Authentication but it is not enabled for the IIS application that hosts this service.</p>
  </blockquote>
  <p>I would assume that this is a problem with my Web.Config or Service.svc.cs, but I cannot identify it.  This only happens for one service.  Enabling Anonymous authentication in IIS7 will resolve the issue, but I need it disabled.</p>
  <p>In my ServiceRefernces.ClientConfig, I have:</p>
  <pre><code>&lt;configuration&gt;
    &lt;system.serviceModel&gt;
      &lt;bindings&gt;
          &lt;basicHttpBinding&gt;
              &lt;binding name=&quot;BasicHttpBinding_IService&quot; maxBufferSize=&quot;2147483647&quot;
                  maxReceivedMessageSize=&quot;2147483647&quot;&gt;
                  &lt;security mode=&quot;None&quot; /&gt;
              &lt;/binding&gt;
          &lt;/basicHttpBinding&gt;
      &lt;/bindings&gt;
      &lt;client&gt;
    &lt;endpoint address=&quot;http://OHARA-WIN7/nightlyweb/Service.svc&quot;       
        binding=&quot;basicHttpBinding&quot;
        bindingConfiguration=&quot;BasicHttpBinding_IService&quot;    
        contract=&quot;ServiceReference2.IService&quot;
        name=&quot;BasicHttpBinding_IService&quot; /&gt;
      &lt;/client&gt;
    &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>
  <p>I have seen a lot of posts where people were told to set TransportClientCredentialType to Ntlm, but VisualStudio does not recognize this element.</p>