title: System.Net.Webclient not working 'WebClient' could not be found
body: <p>I am trying to work with WebClient but it is giving me errors so I check in several forums (included this one) and they where telling to put </p>
  
  <p>In the top of the file: </p>
  
  <pre><code>using System.Net 
  </code></pre>
  
  <p>And after where I want use the WebClient:</p>
  
  <pre><code> WebClient webClient = new WebClient();
   webClient.DownloadFile ("http://mysite.com/myfile.txt", @"c:\myfile.txt");
  </code></pre>
  
  <p>And I get this error:</p>
  
  <p>The type or namespace name 'WebClient' could not be found (are you missing a using directive or an assembly reference?)</p>
  
  <p>In the other forums the code that I just wrote above seems to be the solution but is not working for me. </p>