title: C# Downloading a file does not work
body: <p>Using code below but it is not downloading any file at all to the specified subfolder named myImages to the application... How can I fix this? The link is purely an example here, usually the link will be a variable and that has no issue populating itself. This is all being done in a BackgroundWorker that works 100% fine otherwise.</p>
  
  <pre><code>//File to download
  string _fileToDownload = "http://www.codeproject.com/images/download24.png"
  //Path to download files
  string _filePath = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + "MyImages\\download24.png'";
  //Download the image
  using (var webClient = new WebClient())
  {
      webClient.DownloadFileAsync(new Uri(_fileToDownload ), @_filePath);
  }
  </code></pre>
  
  <p>Thanks.</p>