title: IIS Hosted WCF Rest Service keeeps prompting for Windows Auth Credentials
body: <p>I have a WCF Rest Service that I'm building.  The service is hosted in IIS under an SSL.  And I have the site in IIS setup to use Windows authentication with Anonymous authentication disabled.</p>
  
  <p>However, when I attempt to navigate to service.svc file in the browser to test the windows authentication I am prompted from my credentials as expected.  However, after entering my credentials it continuous to prompt me over and over.  And I don't know why or what I'm missing.</p>
  
  <p>If I re-enable Anonymous authentication and navigate to the service.svc file then the wsdl data loads..but from my understanding is no longer using windows authentication at that point.</p>
  
  <p>I have tested this in IE and Firefox and both of them do the same thing.</p>
  
  <p>Here is my web.config</p>
  
  <pre><code>&lt;system.serviceModel&gt;
  &lt;bindings&gt;
    &lt;webHttpBinding&gt;
      &lt;binding name="WebHttpBindingConfig"&gt;
        &lt;security mode="TransportCredentialOnly"&gt;
          &lt;transport clientCredentialType="Windows" proxyCredentialType="Windows"/&gt;
        &lt;/security&gt;
      &lt;/binding&gt;
    &lt;/webHttpBinding&gt;
  &lt;/bindings&gt;
  &lt;behaviors&gt;
    &lt;serviceBehaviors&gt;
      &lt;behavior name="httpEnabled"&gt;
        &lt;serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" /&gt;
        &lt;serviceCredentials&gt;
          &lt;windowsAuthentication allowAnonymousLogons="False" includeWindowsGroups="True"/&gt;
        &lt;/serviceCredentials&gt;
      &lt;/behavior&gt;
    &lt;/serviceBehaviors&gt;
    &lt;endpointBehaviors&gt;
      &lt;behavior name="EndpBehavior"&gt;
        &lt;webHttp helpEnabled="true"/&gt;
      &lt;/behavior&gt;
    &lt;/endpointBehaviors&gt;
  &lt;/behaviors&gt;
  &lt;services&gt;
    &lt;service name="myService" behaviorConfiguration="httpEnabled"&gt;
      &lt;endpoint address="" binding="webHttpBinding" contract="myContract" behaviorConfiguration="EndpBehavior" bindingConfiguration="WebHttpBindingConfig" /&gt;
    &lt;/service&gt;
  &lt;/services&gt;
  </code></pre>
  
  <p></p>
  
  <p>Any help figuring this out would be great.  If you need any other information please let me know.  Thank you.  </p>
  
  <p>Problem:  Continuous prompt for creds when attempting to view Service.svc in browser.
  Expected result:  Upon entering valid creds they Service.svc page should load</p>
  
  <p>EDIT:
  I was going to post images of the Auth Settings and an example of what it was dong to give a visual, but I don't have enough reputation yet.  Sorry.</p>