title: webclient download problem
body: <p>if this problem was discussed before,sorry for asking again..</p>
  
  <p>I want to download an image from an url with using System.Net.WebClient class.</p>
  
  <p>When i try to download an image (ie. google logo).it does not occur any errors,but some images are occurring errors.I dont understand why this errors.</p>
  
  <p>how can i fix this problem?</p>
  
  <p>my Code is:</p>
  
  <pre><code>WebClient client = new WebClient();
      try
      {
          //Downloads the file from the given url to the given destination                                         
          client.DownloadFile(urltxt.Text, filetxt.Text);
          return true;
      }
      catch (WebException w)
      {
          MessageBox.Show(w.ToString());
          return false;
      }
      catch (System.Security.SecurityException)
      {
          MessageBox.Show("securityexeption");
          return false;
      }
      catch (Exception)
      {
          MessageBox.Show("exception");
          return false;
      }
  </code></pre>
  
  <p>Errors are:</p>
  
  <p>System.Net.WebException:The underlying connection was closed:An unexpected error occurred on a recieve.-->System.IO.IOException:Unable to read data from the transport connection:An existing connection was forcibly closed by the remote host.-->System.Net.Sockets.SocketException:An existing connection was forcibly closed by the remote host...bla bla</p>
  
  <p>Thanks for your help.</p>