title: Windows Auth directory in IIS - web.config Permission problem
body: <p>We've created a windows authenticated sub directory on our web server, however, intermittently when we go there (once logged in as an authenticated user - member of a authenticated group) we get the following error:</p>
  
  <pre><code>Module IIS Web Core
  Notification BeginRequest
  Handler Not yet determined 
  Error Code 0x80070005 
  Config Error Cannot read configuration file due to insufficient permissions  
  Config File \\?\C:\Inetpub\wwwroot\admin\web.config 
  Requested URL http://testsite.dev:80/admin
  Physical Path C:\Inetpub\wwwroot\testsite\admin 
  Logon Method Not yet determined 
  Logon User Not yet determined 
  </code></pre>
  
  <p>The odd thing is once we see this error, hit F5 or refresh and the error goes away, only to reappear a short time later. Very frustrating!!</p>
  
  <p>I have done extensive searches online, but can find nothing. We may also create other sub dirs allowing the same "group" to have access, so this needs to work across all these subs without having to relog in.</p>
  
  <p>We are using IIS7. I've found guides that state for IIS7 ( <a href="http://kenno.wordpress.com/2008/10/23/iis7-cannot-read-configuration-file-due-to-insufficient-permissions/" rel="nofollow">http://kenno.wordpress.com/2008/10/23/iis7-cannot-read-configuration-file-due-to-insufficient-permissions/</a> ) but when I do this it seems to then make the directory accessible to all which is clearly not required.</p>