make a page requieres Windows authentication in Form authenticated project
-
Hi all; my project uses form auth. i want a page requires windows authentication.
<?xml version="1.0"?>
<configuration>
<system.web>
<customErrors mode="Off"/>
<authentication mode="Windows">
</authentication>
</system.web>
</configuration>but it still says
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.
how could i fix this issue?
-
Hi all; my project uses form auth. i want a page requires windows authentication.
<?xml version="1.0"?>
<configuration>
<system.web>
<customErrors mode="Off"/>
<authentication mode="Windows">
</authentication>
</system.web>
</configuration>but it still says
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.
how could i fix this issue?
did you validate the IIS Settings for the same? Check ASP.NET Version and Security Settings for your virtual directory.
cheers, Abhijit