Subject: Web.Config Children files
Posted By: erobb Post Date: 9/8/2003 8:23:53 PM
I want to Password protect portions of a site

---Main site No Password
--thisFolder need password
--thisOtherFolder need different password.  

Was going to put a child web.config in
--thisOtherFolder
--thisFolder

and change the cookie name for each folder

The diagram on page 650 would indicate that this is possible.

But everytime I try and use web.config in a folder other than root I get allowDefinition='MachineToApplication' beyond application level

Virtual Directorys are not an option here

Anyone have any other idea or Should I use the classic solution of setting a unique cookie key for each section?


Root config file =
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <system.web>
    </system.web>
</configuration>

Child (In another folder on same site)=
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
    <authentication mode="Forms">
    <forms name=".ASPXTE" loginUrl="../Login/Login.aspx"
                protection="Encryption" timeout="30"/>
    </authentication>
    <machineKey validationKey="AutoGenerate"
        decryptionKey="AutoGenerate" validation="SHA1"/>
    <authorization>
        <deny users="?"/>
    </authorization>
    </system.web>
</configuration>


Reply By: erobb Reply Date: 9/10/2003 8:28:11 PM
Hello! Figured out the solution.  Are there any better groups for .Net? This room is beat.


Earl
Reply By: darksaint Reply Date: 12/22/2003 9:40:29 AM
And what was the solution? I have the same problem and yes I have no option for virtual directories either :)

quote:
Originally posted by erobb

Hello! Figured out the solution.  Are there any better groups for .Net? This room is beat.
Earl




Go to topic 7698

Return to index page 981
Return to index page 980
Return to index page 979
Return to index page 978
Return to index page 977
Return to index page 976
Return to index page 975
Return to index page 974
Return to index page 973
Return to index page 972