title: Check if file from remote server exists
body: <p>i have an application which requires access permission to a file on remote server.</p>
  <p>My app is in Server A, and the file i want to access is in Server B. These 2 servers are in the same domain.</p>
  <p>I created a virtual directory in Server A for the directory in Server B. The name of virtual directory is FolderFromServerB and its path is \ServerB\Folder. I use a user for auth, and when i test the connection in IIS it says all is OK.</p>
  <p>Also, when i put an anchor tag in a test file like below, i can access the file and the content is shown in the page:</p>
  <pre><code>&lt;a href=&quot;FolderFromServerB/test.txt&quot;&gt;Test file&lt;/a&gt; --&gt;  **This works**
  </code></pre>
  <p>But my problem is when i use code in order to if that file exists or not, it always returns with False. My code is like below:</p>
  <blockquote>
  <p>FileInfo fi = new FileInfo(@&quot;\FolderFromServerB/test.txt&quot;); --&gt; <strong>This doesn't work</strong></p>
  <p>Response.Write(fi.Exists); --&gt; This always 'False'</p>
  </blockquote>
  <p>I granted 'Full Control' permission to my user&amp; NETWORK SERVICE &amp; Everyone &amp; Administratos in Server B but i didnt work neither.</p>
  <p>How can i make it work?</p>
  <p>It was working last week. I guess the server updated itself and some updates made that occur, but i couldn't find any workaround. Im so desperate now and i have to change all of my code and spend much time to make it work.</p>