title: Configuration error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level
body: <p>I have developed a web application using c# and asp.net but when I am trying to publish and put it into the server using ftp then I am getting this following error:</p>
  
  <p>Configuration Error</p>
  
  <p>Description: An error occurred during the processing of a configuration<br>
   file required to service this request. Please review the specific error 
   details below and modify your configuration file appropriately. </p>
  
  <p>Parser Error Message: 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>
  
  <pre><code>Source File: \\fs8-n02\stor10wc2dfw1\555713\570520\www.gxxxxjjsxx.ssd\web\content\2way\armb
                \web.config    Line: 9 
  </code></pre>
  
  <p>Here if I check on my Line 9 of the web config file then I get this:</p>
  
  <pre><code>  &lt;authentication mode="Forms"&gt;
  </code></pre>
  
  <p>And here is my complete web config file code:</p>
  
  <pre><code>     &lt;?xml version="1.0"?&gt;
  
       &lt;configuration&gt;
       &lt;system.web&gt;
      &lt;customErrors mode="Off"/&gt;
      &lt;authentication mode="Forms"&gt;
        &lt;forms loginUrl="Login.aspx" timeout="2880"/&gt;
      &lt;/authentication&gt;
      &lt;compilation debug="true" targetFramework="4.5" /&gt;
      &lt;httpRuntime targetFramework="4.5" /&gt;
      &lt;pages validateRequest="false"&gt;
        &lt;controls&gt;
          &lt;add tagPrefix="ajaxtoolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolKit" /&gt;
        &lt;/controls&gt;
      &lt;/pages&gt;
      &lt;globalization culture="en-GB"/&gt;
    &lt;/system.web&gt;
    &lt;appSettings&gt;
      &lt;add key="ValidationSettings:UnobtrusiveValidationMode" value="None" /&gt;
    &lt;/appSettings&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I have checked whether I have multiple web config files but I could not find something like that. And also I have used this published folder into my IIS and I can browse the site from my localhost using IIS but still when ever I am trying to browse using the <a href="http://projects.globalsms.ae/2way/armb" rel="nofollow">link</a>:</p>
  
  <p>I am getting the same error. Please help me on this. Thanks.</p>