title: web.config allowDefinition=MachineToApplication error
body: <p>Under the root directory I have the following structure</p>
  
  <pre><code>..
  ..
  ..
  web.config
  Report Folder
  - Login.aspx
  - Web.config
    |
    |-&gt; ViewReport
         |       
         |-&gt; Report.aspx
  </code></pre>
  
  <p>In my web.config file in the Report folder I have the following:</p>
  
  <pre><code>    &lt;?xml version="1.0"?&gt;
      &lt;configuration&gt;
          &lt;system.web&gt;
              &lt;authentication mode="Forms"&gt;
                  &lt;forms loginUrl="Login.aspx" defaultUrl="ViewReport/Report.aspx"&gt;
                      &lt;credentials passwordFormat="Clear"&gt;
                          &lt;user name="Johl" password="pass888"/&gt;
                      &lt;/credentials&gt;
                  &lt;/forms&gt;
               &lt;/authentication&gt;
           &lt;/system.web&gt;
  
          &lt;location path="ViewReport/Report.aspx"&gt;
              &lt;system.web&gt;
                  &lt;authorization&gt;
                      &lt;allow users="Johl"/&gt;
                      &lt;deny users="*"/&gt;
                  &lt;/authorization&gt;
              &lt;/system.web&gt;
           &lt;/location&gt;
       &lt;/configuration&gt;
  </code></pre>
  
  <p>When I start debugging I get the following message:</p>
  
  <p>It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.   </p>
  
  <p>NOTE that in my root web.config I have something like the following:</p>
  
  <p>In my root, I already have the following:</p>
  
  <pre><code>         &lt;system.web&gt;        
              &lt;authentication mode="Forms"&gt;
                  &lt;forms loginUrl="Str/StrUserLogin.aspx" timeout="2880" slidingExpiration="true"  /&gt;         
                 &lt;/authentication&gt;
              &lt;authorization&gt;
                  &lt;allow users="*" /&gt;
              &lt;/authorization&gt;     
           &lt;/system.web&gt;
  </code></pre>