title: Problems when using IIS7 and WCF - can't even load the .SVC
body: <p>I have developed a very simple WCF using  v2.0.50727 framework service that returns a string - a typical HelloWorld() scenario. However, the configuration is an absolute pain, and I really don't understand what I am doing wrong. Note I am an administrator on my machine using Windows 7.</p>
  
  <p>So step by step, here is what I am doing:</p>
  
  <ol>
  <li><p>Created a new website pointing to my WCF directory. The directory contains a .svc, a Web.config and a bin directory with the .dll and .pdb in it</p></li>
  <li><p>Try and browse to the site: </p>
  
  <blockquote>
    <p>Config Error - Cannot read configuration file due to insufficient permissions</p>
  </blockquote>
  
  <p>Therefore, I give the IIS_IUSRS account access to the directory.</p></li>
  <li><p>Another error:</p>
  
  <blockquote>
    <p>You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.</p>
  </blockquote>
  
  <p>Therefore, I ensure the user permissions are propagating down - which they are. The same problem comes up and and again - so time to try something different.</p></li>
  <li><p>I look at the AppPools and they are using a newly created one for me using 4.0 integrated mode. I change it to <code>DefaultAppPool</code></p>
  
  <blockquote>
    <p>You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.</p>
  </blockquote></li>
  <li><p>I turn on ASP.NET Impersonation - to pass through my user instead of the default</p>
  
  <blockquote>
    <p>An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.</p>
  </blockquote>
  
  <p>I change the pipeline to <code>Classic ASP.NET Pool</code> (which turned off ASP.NET security)</p>
  
  <blockquote>
    <p>You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.</p>
  </blockquote></li>
  <li><p>Turned ASP.NET Impersonation</p>
  
  <blockquote>
    <p>You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.</p>
  </blockquote></li>
  </ol>
  
  <p>--</p>
  
  <p>Please can someone guide me as to what I'm going wrong? IIS 6 would just let me in straight away and I'm doing a significant amount of configuration just to load a .svc</p>
  
  <p>Regards,</p>
  
  <p>Dominic</p>