title: Asp.net forms authenticated webservice
body: <p>I have a small conundrum where I have an asp.net application that's using forms based authentication.  Inside of the application, I have a webservice that checks User.IsInRole("somerole") which works fine with ajax calls from the application since the user is logged in, and the ajax calls come from his logged in browser.</p>
  
  <p>Now, I want to make a fat client call the webservices (c# console client for starters), but cant figure out how to pass the credential information to it.</p>
  
  <p>I've looked at doing something like the following to no avail:</p>
  
  <pre><code>SomeWebService svc = new SomeWebService();
  svc.Credentials = new NetworkCredential("formsusername","formspassword","");
  String returnValue = svc.CallMyWebMethod();
  </code></pre>
  
  <p>Can anyone out there show me the trick to this?  :-)</p>
  
  <p>Thanks!</p>