title: Unrecognized element 'authentication'.
body: <p>I am trying to write a simple authentication. I'm also trying to make this quick and learn about the forms authentication via web.config.</p>
  
  <p>So i have my authentication working if I hard code my 'user name' and 'password' into C# code and do a simple conditional.</p>
  
  <p>However, I get en error message '<strong>Unrecognized element 'authentication'.</strong></p>
  
  <pre><code>Line 2:     &lt;system.web&gt;
  Line 3:         &lt;customErrors mode="off"&gt;
  Line 4:             &lt;authentication mode="Forms"&gt;
  Line 5:                 &lt;forms name=".C#FEWD" 
  Line 6:                     loginUrl="/schools/admin/login/index.aspx" 
  </code></pre>
  
  <p>My web.config file looks like this:</p>
  
  <pre><code>&lt;configuration&gt;
      &lt;system.web&gt;
          &lt;customErrors mode="off"&gt;
              &lt;authentication mode="Forms"&gt;
                  &lt;forms name=".C#FEWD" 
                      loginUrl="/schools/admin/login/index.aspx" 
                      protection="All" 
                      timeout="60"&gt;
                      &lt;credentials passwordFormat="Clear"&gt;
                          &lt;user name="schools" password="magic" /&gt;
                      &lt;/credentials&gt;
                  &lt;/forms&gt;
              &lt;/authentication&gt;
          &lt;authorization&gt;
              &lt;deny users="?" /&gt;
          &lt;/authorization&gt;
          &lt;/customErrors&gt;
      &lt;/system.web&gt;
  &lt;/configuration&gt;
  </code></pre>