title: File.Copy and WPF
body: <p>I have a little problem with the <code>File.Copy</code> method in WPF, my code is very simple and I get an exception when I run it,</p>
  
  <pre><code>Could not find a part of the path 'Images\37c31987-52ee-4804-8601-a7b9b4d439fd.png'.
  </code></pre>
  
  <p>where <code>Images</code> is a relative folder.</p>
  
  <p>Here is my code, as I said simple and the same code works fine in a console application, no problem at all.</p>
  
  <pre><code>string filenamae = System.IO.Path.Combine(images, Guid.NewGuid().ToString() + System.IO.Path.GetExtension(imageFile)); ;
  System.IO.File.Copy(imageFile, filenamae);
  this.ImageLocation = string.Empty;
  </code></pre>
  
  <p>So if any can help, thanks.</p>