<location path="mysubdir" > <system.web> <authentication mode="Forms" > <forms name="MyApp" path="/" loginUrl="Logon.aspx" /> </authentication> <authorization> <allow users="?" /> </authorization> </system.web> </location>But I get error message on line
<authentication mode="Forms" >
The error is as following: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.Must I have the subdirectory "mysubdir" to be configured as virtual directory in IIS?