title: asp mvc textreader
body: <p>I am trying to use a textreader to retrieve data from a text file on a local machine.  I have an upload routine to get the file for the reader to open.</p>
  
  <p>When I run the application locally, it works fine.  When I publish my application to my server, I am getting a Could not find a part of the path error.  I assume this error has to do with permission in that the server cannot read from the local file system, but I don't know the proper way to remedy this.  </p>
  
  <p>do I set up the application to impersonate the user?  I know I can't possibly set up each local users machine to allow the iusr account to access it.</p>
  
  <p>Thanks for any thoughts.</p>
  
  <p>UPDATE ****
  I ensured that network service is they user for the app pool.  I also ensured that the networkService has access to the local folder that the application resides in.  I am running IIS7, and when I test the site, I am getting the error - </p>
  
  <pre><code>The server is configured to use pass-through authentication with a built-in account to access the specified physical path. However, IIS Manager cannot verify whether the built-in account has access. Make sure that the application pool identity has Read access to the physical path. If this server is joined to a domain, and the application pool identity is NetworkService or LocalSystem, verify that &lt;domain&gt;\&lt;computer_name&gt;$ has Read access to the physical path. Then test these settings again
  </code></pre>
  
  <p>I have tried suggestions from various posts, including adding domain\servername$ to the folder to allow access, but nothing seems to work.</p>
  
  <p>Any thoughts?</p>