title: Forms Authentication Error in WCF
body: <p>We are connecting to a WCF web service which has Anonomous Access turned off, Windows Authentication turned on.  The web.config file has a local user account for allow users and deny users="?".  </p>
  
  <p>I can download and generate the service proxy fine (being prompted for creds), however from my windows form project (even when passing in the credentials), I get the following error:</p>
  
  <pre><code>System.ServiceModel.Security.MessageSecurityException was unhandled
    Message="The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Basic realm=\"SEIPART001\"'."
  
  Message="The remote server returned an error: (401) Unauthorized."
  </code></pre>
  
  <p>Here is my sample code:</p>
  
  <pre><code>ip.eIPCShoppingCartWSSoapClient client = new iParts.ip.eIPCShoppingCartWSSoapClient();
  System.Net.NetworkCredential creds = new System.Net.NetworkCredential("username", "password", "domain");
  
  client.ClientCredentials.Windows.ClientCredential = creds;
  iParts.ip.OrderListItem[] listItem = client.GetOrderList("1234"); //throws exception here
  </code></pre>