Configuration Error
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 2: <system.web>
Line 3: <customErrors mode="Off"/>
Line 4: <authentication mode="Forms">
Line 5: <forms name=".ASPXFORUM" loginUrl="login.aspx" protection="All" timeout="30" path="/" />
Line 6: </authentication>

Source File: C:\homeprojects\aspdotnet\FormBasedAuthCode\web.co nfig Line: 4

How can I configure a virtual directory as an application in IIS?

Please view my complete web.config file:
-------------------------------------------------------------------------------------

<configuration><system.web><customErrors mode="Off"/><authentication mode="Forms"><forms name="appNameAuth" path="/" loginUrl="login.aspx" protection="All" timeout="30"><credentials passwordFormat="Clear"><user name="jeff" password="test" /><user name="mike" password="test" /></credentials></forms></authentication><authorization><deny users="?" /></authorization></system.web></configuration>
--------------------------------------------------------------------------------------

Cheers