title: File upload on load balanced server
body: <p>I have a web project that I developed where one of the main functions is uploading files.</p>
  
  <p>All the permissions are based on Windows Authentication. When I first created the project, I didn't realize that it would be on a load balanced server.  Now it's in the environment with the load balanced server and the file upload has become a major issue.</p>
  
  <p>I originally thought that I could just create a virtual directory to a network share that would be the upload folder, however that solution has turned into a permissions nightmare.  I haven't been able to do any successful test runs in the production environment.</p>
  
  <p>So I'm thinking now, my solutions would be to create a service on the servers that checks the upload directory and syncs them up.  The other possible solution I see is to store the files in the database which I've had some issues with in the past.</p>
  
  <p>Does anyone know of a straight forward solution for uploading files to a load balanced server that authenticates using Windows Permissions?</p>
  
  <p>Thanks.</p>
  
  <p>UPDATE - So I have changed the application pools to run through a domain account that has full permissions on the share and the folder itself in the Windows permissions.  The Virtual directory has full privileges in IIS, but I'm still getting the same issue.</p>
  
  <p>One of the things that needs to be done with this is also the ability to create directories, which I think might be tripping me up now.  I'm just using System.IO.Directory.CreateDirectory</p>
  
  <p>Any other thoughts on where I could be missing permissions?</p>