title: C# MVC Access to path denied when trying to write file
body: <p>I have an MVC application in which users are able to upload files. Before I write the uploaded file, I create a directory according to date time. I start off with <code>C:\ApplicationName</code> and end up with <code>C:\ApplicationName\20111001\Filename.ext</code> when the upload is completed (in theory).</p>
  
  <p>My problem on my local Windows 7 machine is that I can not write the file. </p>
  
  <p>I get an <code>"access denied"</code> exception no matter which user I give full access to the directory. The strange thing is that the date directory gets created just fine.</p>
  
  <p>I have given the following users full access:</p>
  
  <ul>
  <li>[Current logged in user]</li>
  <li>NETWORK SERVICE</li>
  <li>IUSR</li>
  <li>IIS_IUSRS</li>
  <li>Guests</li>
  <li>Everyone</li>
  </ul>
  
  <p>Without any success. I really don't understand what is going on here. When I give Everyone full access, I should be able to create a file right?</p>
  
  <p>PS: I use Visual Studio 2010 and ASP.NET Development Server straight out of the box.</p>