title: blank asp.net site shows web.config error when i try to access it
body: <p>I have created a blank asp.net website consisting of a blank default.aspx page, its .cs file, a login.aspx page and its .cs and a web.config. I'm looking to test .net authentication as seen in <a href="http://msdn.microsoft.com/en-us/library/xdt4thhy.aspx" rel="nofollow">here</a> on the MSDN site. I've copied everything as shown in the article. I set up the site in IIS6 now when I go to the site I get the runtime error with the:</p>
  
  <blockquote>
    <p><em>"To enable the details of this specific error message to be viewable on remote machines, please create a  tag within a "web.config" configuration file located in the root directory of the current web application. This  tag should then have its "mode" attribute set to "Off"."</em> </p>
  </blockquote>
  
  <p>message. when I add the customErrors mode="On" tag to the web.config I still get this error like its not looking at the web.config. I've triple checked IIS and its definitely looking at the right site folder. Here's my web.config:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;   
   &lt;configuration&gt;
  
          &lt;system.web&gt;
            &lt;customErrors mode="On"/&gt;
             &lt;authentication mode="Forms"&gt;
               &lt;forms loginUrl="Logon.aspx" name=".ASPXFORMSAUTH"&gt;
               &lt;/forms&gt;
             &lt;/authentication&gt;
  
            &lt;authorization&gt;
              &lt;deny users="?" /&gt;
            &lt;/authorization&gt;
             &lt;compilation debug="false" targetFramework="4.0" /&gt;
  
          &lt;/system.web&gt;
  
      &lt;/configuration&gt;
  </code></pre>
  
  <p>I usually set sites up through CMS installations. This is the first time I've done one from a blank site in visual studio. Is there more you need to add to web.config?</p>