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.
what I'm doing:
I need to enable forms authentication for only one of my pages.
so I made an application under my project using IIS and enabled its forms Authentication. The application contains the page that requires user to log in and a web.config. Below is the code of web.config under the application.
<forms loginUrl="login.aspx" protection="All" timeout="60" />
<machineKey validationKey="AutoGenerate" decryptionKey="AutoGenerate" validation="SHA1" />
<deny users="?" />
I can't move these codes to the main web.c
View Complete Post