title: a file cannot be deleted and copy and move do not work in C# VS2013
body: <p>I am trying to copy a file in same folder from C# VS2013 on win7.</p>
  
  <pre><code> string myFile = @"C:\Temp\MyFile.txt"
   if (File.Exists(myFile))
   {
         File.Delete(myFile);
   }
   File.Move(myFileSource, myFile);
  </code></pre>
  
  <p>I got error: </p>
  
  <pre><code>Additional information: Cannot create a file when that file already exists.
  </code></pre>
  
  <p>I checked the folder and found that the file "myFile.txt" is still there after deleting. </p>
  
  <p>If i used: </p>
  
  <pre><code>  File.Copy(myFileSource, myFile, true);
  </code></pre>
  
  <p>Error: </p>
  
  <pre><code>  Additional information: Access to the path 'C:\Temp\myFile.txt' is denied.
  </code></pre>
  
  <p>Why ? thanks</p>