title: IIS + Windows Authentication + Web service .NET = HTTP Error 401.1 - Unauthorized
body: <p>i have big problem.I want to use the web services with Windwos Integrated Authentication and no Anonymous Authentication.</p>
  
  <p>I publish my service (asmx page) on the server. So when i try to access it with Network Credential as show below, i receive HTTP Error 401.1 - Unauthorized.</p>
  
  <pre><code>My_WS.WSClass ws= new My_WS.WSClass();
  ws.Credentials = new NetworkCredential("username", "password","domain");
  ws.PreAuthenticate = true;
  ws.callMethod(Parameter);
  </code></pre>
  
  <p>On IIS 7 i've enabled only Windows authentication, and my application pool Identity is "Network Service".</p>
  
  <p>If i try my service with anonymous authentication it works.</p>
  
  <p>Any suggestion ?</p>
  
  <p>Thanx</p>