Wrox Programmer Forums
|
BOOK: Professional ASP.NET 1.0, Special Edition/1.1
This is the forum to discuss the Wrox book Professional ASP.NET 1.1 by Alex Homer, Dave Sussman, Rob Howard, Brian Francis, Karli Watson, Richard Anderson; ISBN: 9780764558900
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 1.0, Special Edition/1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 8th, 2003, 08:23 PM
Authorized User
 
Join Date: Jun 2003
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to erobb Send a message via Yahoo to erobb
Default Web.Config Children files

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>


 
Old September 10th, 2003, 08:28 PM
Authorized User
 
Join Date: Jun 2003
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to erobb Send a message via Yahoo to erobb
Default

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


Earl
 
Old December 22nd, 2003, 10:40 AM
Registered User
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

And what was the solution? I have the same problem and yes I have no option for virtual directories either :)

Quote:
quote:Originally posted by erobb
 Hello! Figured out the solution. Are there any better groups for .Net? This room is beat.
Earl





Similar Threads
Thread Thread Starter Forum Replies Last Post
web.config vs. app.config darlo Visual Studio 2005 11 August 20th, 2008 07:23 AM
Using multiple config files Johan C# 1 October 6th, 2007 04:04 PM
Programatically reading CONFIG files [email protected] Linux 2 September 23rd, 2004 10:11 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.