title: IIS Virtual Directory to remote server shared folder: The path might not exist and could not be verified
body: <p>I cannot get the virtual directory on my IIS website to point to a shared physical folder on a remote file server for love nor money. I set up the same (same name and password) admin users on the web site computer and the file server computer, made that user the application pool identity owner on the IIS site application pool for the website, and gave that user permission to access the shared folder on the REMOTE file server, and shared with that specific user. When I try to create a virtual directory in my website pointing to the remote file server share folder using IIS on the web server computer, the authentication works fine every time but the path cannot be found. I have tried many combinations of UNC, and even a firewall rule. </p>
  
  <p>No good. </p>
  
  <p>I have a dev box and a production web server both running the same IIS .NET website (using IIS 10 Version 1607 on my dev box, and IIS 7 on the production server). (Note that the web and file server production boxes are running as/on VMWare Virtual machines.)</p>
  
  <p>I have a securely shared folder I need the web server(s) to put files in on a separate/other <strong>remote</strong> Windows 2012 server.</p>
  
  <p>The following applies to both the case where my web server is on my dev system (Windows 10), and where it is on the production server (Windows Server 2012 R2). I did the following:</p>
  
  <p><strong>1. Set up an administrative accounts with the same name and same password on both the web server(s) and the remote 2012R2 file server system.</strong></p>
  
  <p><a href="https://i.stack.imgur.com/EBpKy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EBpKy.png" alt="enter image description here"></a></p>
  
  <p><strong>1. I shared a folder on the remote 2012R2 file server system to a specific person - the administrative user mentioned in 1.</strong></p>
  
  <p><a href="https://i.stack.imgur.com/t6ZDH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t6ZDH.png" alt="enter image description here"></a></p>
  
  <p><strong>2. I made this administrative user the application pool owner on the IIS web site on the web server(s)</strong> </p>
  
  <p><a href="https://i.stack.imgur.com/aYlrJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aYlrJ.png" alt="enter image description here"></a></p>
  
  <p><strong>3. I attempted to create a virtual directory from the web server to point to the shared folder on the remote file server using its IP address as the server name, and using both the pass through authentication (remember the IIS pool identity is the same administrative user that exists on both computers) and specific user login options (i.e. I tried both)</strong></p>
  
  <p><a href="https://i.stack.imgur.com/HwNmT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HwNmT.png" alt="enter image description here"></a></p>
  
  <p><strong>5. I get this error consistently:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/1xqYD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1xqYD.png" alt="enter image description here"></a></p>
  
  <p>What IS this? Do I need a firewall rule on the remote file server? The MS docs DON'T say that I do. The word 'firewall' does not even appear once on this page: <a href="https://support.microsoft.com/en-us/help/308150/how-to-create-a-virtual-directory-on-an-existing-web-site-to-a-folder-that-resides-on-a-remote-computer" rel="nofollow noreferrer">https://support.microsoft.com/en-us/help/308150/how-to-create-a-virtual-directory-on-an-existing-web-site-to-a-folder-that-resides-on-a-remote-computer</a> 
  And the word 'firewall' does not appear once on this page either: <a href="https://msdn.microsoft.com/en-us/library/bb763173.aspx" rel="nofollow noreferrer">https://msdn.microsoft.com/en-us/library/bb763173.aspx</a></p>
  
  <p>There is nothing in this page about firewalls or remote physical directories either: <a href="https://technet.microsoft.com/en-us/library/cc771804.aspx" rel="nofollow noreferrer">https://technet.microsoft.com/en-us/library/cc771804.aspx</a></p>
  
  <p>So, having followed the instructions I am stumped with regards to what I missed.</p>
  
  <p>I have tried lots of combinations of UNC (maybe I still missed one?):</p>
  
  <pre><code>\\XXX.XXX.XXX.XXX\servername\_files
  \\XXX.XXX.XXX.XXX\_files
  \\XXX.XXX.XXX.XXX\subf\_files
  \\XXX.XXX.XXX.XXX\\_files
  \\XXX.XXX.XXX.XXX\\subf\_files
  \\XXX.XXX.XXX.XXX\_files
  //XXX.XXX.XXX.XXX/servername/_files
  //XXX.XXX.XXX.XXX/subf/_files
  //XXX.XXX.XXX.XXX/_files
  </code></pre>
  
  <p>_files (file://servername/_files)</p>
  
  <p>No good.</p>
  
  <p><a href="https://i.stack.imgur.com/ydIkq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ydIkq.png" alt="enter image description here"></a></p>
  
  <p>I also:</p>
  
  <ol>
  <li>Made the Web2012Tx user the OWNER of the shared folder in folder->properties->security->advanced</li>
  <li>Made the Web2012Tx user the OWNER of the shared folder's parent folder.</li>
  <li>Shutdown and restarted the IIS website and recycled the application pool multiple times.</li>
  </ol>
  
  <p>NOwhere does it say that I should share the parent folder of the shared folder, and in fact the MS sharing instructions say not to do so.</p>
  
  <p>Unfortunately this <a href="https://stackoverflow.com/questions/14611015/iis7-accessing-network-share">IIS7 Accessing Network Share</a> did nothelp.</p>
  
  <p>So to summarise, the Web2012Tx user is an admin on all systems with the same password on all, with full security access and ownership of the shared folder on the file server, and is assigned as the IIS application pool owner for the websites on the web server computers. The folder on the file server is specifically shared with that specific user. There is no authentication problem, but the IIS virtual directory still cannot be created because the shared folder is apparently not visible??`</p>
  
  <p>Do I need a firewall rule? What kind?
  Do I need IIS on the file server (I do not think this is right at all)
  Is it my UNC structure? (this is possible)</p>
  
  <p><strong>The only other thing I can think of is that the production Web and file servers are on VMWare VMs, but that should be transparent to the task at hand.</strong> </p>
  
  <p>UPDATE:</p>
  
  <p>This did not help (installing share resource manager on file server Windows 2012 R2 box where the shared folder is):</p>
  
  <p><a href="https://i.stack.imgur.com/sxs10.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sxs10.png" alt="enter image description here"></a></p>
  
  <p>Nor did this (opening up the network share visibility appropriately):</p>
  
  <p><a href="https://i.stack.imgur.com/Cn4dj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Cn4dj.png" alt="enter image description here"></a></p>
  
  <p>Nor did these adjustments to the firewall work:</p>
  
  <p><a href="https://i.stack.imgur.com/cR50c.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cR50c.png" alt="enter image description here"></a></p>
  
  <p>UPDATE:</p>
  
  <p>So now on the production box web server I get good authentication/credential and folder access test, but still no access through IIS!</p>
  
  <p><a href="https://i.stack.imgur.com/rPZAR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rPZAR.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/HhUh1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HhUh1.png" alt="enter image description here"></a></p>
  
  <p>We have strong security with and a very small well securfed surface area, but I need this secure share for function.</p>