title: Login failed for user 'NT Authority\ANONYMOUS LOGON' when connect to SharePoint web service
body: <p>We encounter "login failed for user 'NT Authority\anonymous Logon' " error when using the SharePoint copy web service CopyIntoItems method for uploading file to SharePoint from custom web page </p>
  
  <pre><code>System.Net.CredentialCache.DefaultNetworkCredentials;
  </code></pre>
  
  <p>We need to use the current user credential for uploading file to SharePoint.</p>
  
  <p>any help will be appreciated.</p>
  
  <p>Web Site details:
  only Windows authentication enabled</p>