title: File.Delete isn't working to delete image from sub folder
body: <p>In our ASP.NET program a user can upload an image to a folder. The location of the image (including the name of the upload folder which is in the root directory) is stored as a variable called "path", ie. "Uploads/fileName.jpg".</p>
  
  <p>To remove the image:</p>
  
  <pre><code>if (File.Exists("~/" + path))
                  {
                      File.Delete("~/" + path);
                  }
  </code></pre>
  
  <p>However, it fails to run because it can't verify that the file exists. Through some testing we noticed it's looking for "path" in the "system32" directory. Why would this be?</p>