title: IIS7 Permission Denied - ASP File Write
body: <p>Unfortunately I don't have a whole lot of information on this.
  I have a customer who has moved their site from an ancient system to IIS7 on Windows 2008 Server. Info about the error is below:</p>
  
  <p>Error:
    E:\wwwroot\sp\xxx\online_data.xls 
  Microsoft VBScript runtime error '800a0046' </p>
  
  <p>Permission denied </p>
  
  <p>/xxx/oat/exceldata.asp, line 52 </p>
  
  <p>Code:</p>
  
  <pre><code>49 response.write(server.mappath("online_data.xls")) 
  50   
  51 set fso = createobject("scripting.filesystemobject") 
  52 Set act = fso.CreateTextFile(server.mappath("online_data.xls"), true) 
  </code></pre>
  
  <p>The only suggestion so far is to:</p>
  
  <blockquote>
    <p>grant the application pool
    (DefaultAppPool / Classic AppPool)’s
    impersonated identity read and write
    permission to the physical folder
    which the asp page reside</p>
  </blockquote>
  
  <p>Will look at this when I get access, but other suggestions would be appreciated.</p>