RE: Help needed in Web.config
From: ranganh (ranganh_at_discussions.microsoft.com)
Date: 09/04/04
- Next message: nabil m: "simple login form"
- Previous message: CW: "Folder access by ASP.Net application"
- In reply to: Raghu Raman: "RE: Help needed in Web.config"
- Next in thread: Raghu Raman: "RE: Help needed in Web.config"
- Reply: Raghu Raman: "RE: Help needed in Web.config"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 4 Sep 2004 08:49:01 -0700
Hi,
You need to put the locationpath tag outside the system.web tag in your
web.config.
your web.config stars like this
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
// here you specify the authentication mode
</system.web>
//here you need to put the location path tag
<location path="ProtectedPage.aspx">
<system.web>
<authorization>
<deny users="?" />
<deny users="sa" />
</authorization>
</system.web>
</location>
Notice that the above tag set themselves have a system.web tag. so they
need to be outside the original <system.web>... </system.web> tags. in your
web.config file.
"Raghu Raman" wrote:
>
>
> Hi, thanks for that. but i did not get he result for that.it spits the
> error for the <location > tag.
>
> your suggestion
> --------------------------
> <location path="ProtectedPage.aspx">
> <system.web>
> <authorization>
> <deny users="?" />
> <deny users="sa" />
> </authorization>
> </system.web>
> </location>
> ------------------------------
>
> may be i am wrong in understanding of the web.config.
> --------------------------------
> let me clear on web.config
> --------------------------------
> 1.the users tag in the web.config denotes the windows user account only
> ..
> 2. it does not denotes the any database users.
>
> 3. for 'forms' based authentication, since some of my pages of my web
> has to be seen , i should go for Anonymous authentication alone (or
> combined with Integrated windows Authentication) .
>
> 4.Now i need to do nothing with the web.config. am i right???
>
> 5.THEN HOW DO I RESTRICT THE DATABASE USERS.
>
>
> ***IS IT POSSIBLE TO RESTRICT DATABASE USERS IN WEB.CONFIG?**
>
> With regards
> Raghuraman
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
>
- Next message: nabil m: "simple login form"
- Previous message: CW: "Folder access by ASP.Net application"
- In reply to: Raghu Raman: "RE: Help needed in Web.config"
- Next in thread: Raghu Raman: "RE: Help needed in Web.config"
- Reply: Raghu Raman: "RE: Help needed in Web.config"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|