title: ASP.NET + Access to the path is denied
body: <p>I have an ASP.NET application that attempts to write files on the web server during runtime. In my development environment, this works. However, when I deploy it to the production server, and I execute the code, I receive an error that states:</p>
  
  <pre><code>"Access to the path 'C:\Inetpub\wwwroot\MyWebApp\DirToWriteTo\' is denied."
  </code></pre>
  
  <p>My production server is a Window Server 2003 machine. The web application is set to allow anonymous access via the IUSR_TEMPLATE account. </p>
  
  <p>What am I doing wrong?</p>
  
  <p>Thank you!</p>