How to solve the following errors in Web.config
<p>here is the error that is occuring at runtime</p>

<pre><code>Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

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.

Source Error: 


Line 25:             ASP.NET to identify an incoming user. 
Line 26:         --&gt;
Line 27:        &lt;authentication mode="Forms"/&gt;
Line 28:        &lt;!--
Line 29:             The &lt;customErrors&gt; section enables configuration 

Source File: F:\Final Event Management\event management\web.config    Line: 27 
</code></pre>

<p>and it is the coding in which error is genrating</p>

<pre><code>&lt;?xml version="1.0"?&gt;

&lt;configuration&gt;
    &lt;appSettings/&gt;
    &lt;connectionStrings/&gt;
    &lt;system.web&gt;

        &lt;compilation debug="true" targetFramework="4.0"&gt;
        &lt;/compilation&gt;

        &lt;authentication mode="Forms"/&gt;

        &lt;pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/&gt;&lt;/system.web&gt;

&lt;/configuration&gt;
</code></pre>

<p>please solve this problem.............</p>
