title: Access denied when deleting file
body: <p>I have a service (****.svc file) that saves images in the application folder.</p>
  
  <p>When I try to delete another image file (that not in use) from this folder I get "Access to the path '' is denied".</p>
  
  <pre><code>foreach (string file in Directory.GetFiles(serverPath))
  {
         File.Delete(file);
  }
  </code></pre>
  
  <p>Do you have any idea why I can write to this folder but can't delete from it?</p>