title: File.Exists() always returns false on IIS
body: <p>The file path that I'm checking with File.Exists() resides on a mapped drive (<code>Z:\hello.txt</code>). The code runs fine in debug environment, however in IIS, it always returns false</p>
  
  <pre><code>var fullFileName = string.Format("{0}\\{1}", ConfigurationManager.AppSettings["FileName"], fileName);
  
  if (System.IO.File.Exists(fullFileName))
  </code></pre>
  
  <p>Why is this so, and how can I workaround this?   </p>
  
  <p>I have granted everyone full read/write permissions in that mapped drive</p>
  
  <p>EDIT: </p>
  
  <p>I tried deleting the file via <code>\\192.168.1.12\Examples\Files\2.xml</code> and I get the same result. It doesn't detect the file on IIS, but works fine on debug</p>