I tried the ASP.net QuickStart, and when I tried the form-based as well as the windows-ased authentication, I have an error as follows:

Server Error in '/QuickStart' Application.
--------------------------------------------------------------------------------

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 1: <configuration>
Line 2: <system.web>
Line 3: <authentication mode="Forms">
Line 4: <forms name=".ASPXUSERDEMO" loginUrl="login.aspx" protection="All" timeout="60" />
Line 5: </authentication>


Source File: D:\Program Files\Microsoft Visual Studio.NET\FrameworkSDK\Samples\QuickStart\aspplus\samples\security\CookieAuth\VB\web.config Line: 3


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0