title: Where do I set the CookieContainer on a Service Reference?
body: <p>When adding WebService Reference to an ASMX Service on a .NET 2.0 project for example,</p>
  
  <pre><code>var objService = new NameSpace.groupservices();
  </code></pre>
  
  <p>there exists,</p>
  
  <pre><code>objService.CookieContainer = new System.Net.CookieContainer();
  </code></pre>
  
  <p>When adding ServiceReference to an ASMX Service on a .NET 4.0 project for example,</p>
  
  <pre><code>var objService = new NameSpace.groupservicesSoapClient();
  </code></pre>
  
  <p>there isn't any CookieContainer property for objService</p>
  
  <p>A similar question was asked <a href="https://stackoverflow.com/questions/1777221/using-cookiecontainer-with-webclient-class">here</a> with no positive solution.</p>
  
  <p>Could someone please guide where to find the property?</p>