title: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level
body: <p>I want to manage two web.config file in a application one for the front-end user and second for the back-end(admin) user.for admin section I have created a folder with name <strong>admin</strong> in the same website.following settiongs are in the <strong>admin/web.config</strong></p>
  
  <p>
  
   
          
   
   
          
   
   
          
   
   
    </p>
  
  <p>
     
      
     
    </p>
  
  <p>
    
    
     
      
     
    
    
    
              
                  
              
    </p>
  
  <p>
     
    </p>
  
  <p>
     
     
    
    
              
          
    
              
    
   
   
    
    
              
    
    
              
    
   </p>
  
  <p></p>
  
  <p>when I am trying to run the application I am getting following error message:</p>
  
  <p><strong>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</strong></p>
  
  <p>Same problem have discussed on below 
  <a href="https://stackoverflow.com/questions/1546568/asp-net-error-tt-is-an-error-to-use-a-section-registered-as-allowdefinitionmac">ASP.NET What causes: It is an error to use a section registered as allowDefinition=&#39;MachineToApplication&#39; beyond application...?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/690909/it-is-an-error-to-use-a-section-registered-as-allowdefinitionmachinetoapplicati">It is an error to use a section registered as allowDefinition=&#39;MachineToApplication&#39; beyond application level</a></p>
  
  <p>Please give me some suggestion to solve this problem.
  Thanks in advance</p>