title: HttpWebRequest 401 with NTLM Authenticiation
body: <p>I am having difficulties authenticating a HttpWebRequest to a webserver.  The response I am receiving is simply a 401.  I've made sure I set the credentials correctly on the C# side, and IIS is correctly set to allow NTLM authentication. I don't know if this matters, but he computer is not on the same domain as the the web server. </p>
  
  <p>I am sure the user/pass is correct but are there any other authorization settings needed to configure on the user?</p>
  
  <p>If I enable Basic authentication, and disable Windows Authentication, the request works perfectly (with the correct C# code changes of course).</p>
  
  <p>What am I missing?</p>
  
  <pre><code>    webRequest.UseDefaultCredentials = false;
      webRequest.PreAuthenticate = true;
      var c = new NetworkCredential("User", "password", "domain");
  
      CredentialCache credentialCache = new CredentialCache();
      credentialCache.Add(new Uri(Url), "NTLM", c);
      webRequest.Credentials = credentialCache;
  </code></pre>
  
  <p>Heres a snapshot of my settings in IIS.</p>
  
  <p><img src="https://i.stack.imgur.com/wrynP.jpg" alt="IIS Authentication Configuration"></p>
  
  <p>Failed Request Tracing:</p>
  
  <p><img src="https://i.stack.imgur.com/Ag1b7.jpg" alt="Tracing Error Log"></p>