Re: web config problem!!!!
From: Amol Shambharker (amolshambharkar_at_yahoo.com)
Date: 06/30/03
- Previous message: Marcus Müller: "ADSI and DirectoryServices Security issue"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 30 Jun 2003 09:40:44 -0500
Hi,
I believe you could use the <location> tag to get separate login pages for the admin and user sub folder.the location tag would go something like this:
<configuration>
<location path="admin">
<system.web>
<authentication mode="Forms" />
.
.
.
<authorization>
.
.
.
</authorization>
</system.web>
</configuration>
Take care so that the <location> tab is outside the main <system.web> tag and within the <configuration> tag.I guess I am a little late with this reply and you might have figured things out for yourself but maybe someone could benefit from this.Hope this helps.
Amol.
>>> Volkan Karaboğa<volkan.karaboga@aktif.com.tr> 5/16/2003 1:35:20 AM >>>
hi again I rewieved that project but ıt has only one login page too.
What will I do if I have two different login page for admin and user sub
folders...
thanks
"Volkan Karaboğa" <volkan.karaboga@aktif.com.tr> wrote in message
news:ez4gkTiGDHA.1600@tk2msftngp13.phx.gbl...
> Hi all!!
>
> I have an asp.net application in a folder its name is like app and app
> folder has two sub folder named admin and user
>
> I want to show to users two different login page and I dropped 2 web
config
> file into these sub folder in order to redirect the users the pages which
I
> entered each web config file but an error occours when building project
>
> error msg is like "please check if there are some errors in web config
> file"
>
> our web config file is below for admin sub folder :
>
> ------------------------------------------------
>
> <?xml version="1.0" encoding="utf-8"?>
> <configuration>
> <system.web>
> <authorization>
> <deny users="?"/>
> </authorization>
> <authentication mode="Forms">
> <forms name="Authentication" loginUrl="adminlogin.aspx"
protection="All"
> path="/"/>
> </authentication>
> </system.web>
>
> </configuration>
>
> ---------------------------------------------------
>
> when I disable authentication section of webconfig it works but I have to
> enter in this section a login file
>
>
> How can I accomplish this process??
>
> Thanks your helps...
>
>
>
>
>
- Previous message: Marcus Müller: "ADSI and DirectoryServices Security issue"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|