title: IIS: System.UnauthorizedAccessException: Access to the path
body: <p>I have a website and it sits on the IIS Server and I have a folder on another server the file server.  I have set the Virtual directory to the folder on the fileserver.  This application both servers are on the same domain, but in the future I will have serves that are not on the same domain. </p>
  
  <p>I have tried to set up local users on both machines and set up the app pool to use the local accounts and I get</p>
  
  <p>System.UnauthorizedAccessException: Access to the path is denied.
   and
   401 - Unauthorized: Access is denied due to invalid credentials.
   You do not have permission to view this directory or page using the credentials that you supplied.</p>
  
  <p>I have set the virtual to connect as the local user and get the same error.</p>
  
  <p>I have setup a domain user and then set the app pool to use the domain user and set to use pass through and when I test the settings in Directory Browsing it says everything is good but I get the same error from the webpage.</p>
  
  <p>I have setup a domain user and then set the app pool to use the domain user and set to the connect as to the user and when I test the settings in Directory Browsing it says everything is good but I get the same error from the webpage.</p>
  
  <p>I have set the apppool to use my login and it works with pass through permissions. </p>
  
  <p>Is there something I am missing.</p>