Hello Everyone,
I have one main web.config file and then I added another in a folder say secure. As anything within that folder I need it to be password protected.
<?xml version="1.0"?>
<
configuration><system.web><authentication mode="Forms">
<forms name=".TEST" loginUrl="default.aspx"
protection="All" path="/" timeout="30" />
</authentication>
<authorization>
<deny users ="?" />
<allow users = "*" />
</authorization>
</system.web>
</
configuration>
This is the error I get :
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.
Can anyone please let me know how to fix this ?