title: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.
body: <p>Error i got is </p>
  
  <pre><code>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.  C:\Users\Jangid\Downloads\TestWebSite1\TestWebSite1\Backup\TestWebSite1\Web.config  26
  </code></pre>
  
  <p>I have hosted a website in a server using ASP.Net 2.0, i have a web.config in the root folder and also one in the Admin folder, but the admin folder is not a virtual directory and i dont want to create.</p>
  
  <pre><code>&lt;authentication mode="Forms"&gt;
    &lt;forms loginUrl="Admin/Login.aspx" name=".ASPXFORMSAUTH"/&gt;
  &lt;/authentication&gt;
  &lt;authorization&gt;
    &lt;allow roles="Admins"/&gt;
    &lt;deny users="*"/&gt;
    &lt;deny users="?"/&gt;
  &lt;/authorization&gt;
  </code></pre>
  
  <p>But for authentication and login work for Admin folder, i have used ASP.Net Login Control, but this error preventing me to move formward.</p>
  
  <p>And also please can any one give me a link for learning ASP.Net Login Control, Like user who visit Admin folder should be authenticated with a Role as admin,
  How can i create a Role and assign to user on a server</p>