View Full Version : Authentication page Web Config Problem

07-12-2004, 07:56 PM
I can't seem to get my login/password page to work. Why does this error keep on appearing, pointing to a line of code in my web config document?

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="login" loginUrl="lgoin.aspx" >
Line 5: </forms>

07-12-2004, 10:57 PM
maybe it is because you've set the loginUrl attribute to "lgoin.aspx"
and your login page is called "login.aspx".