Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Allowed roles/users from the web.config

24 views
Skip to first unread message

Alexey Smirnov

unread,
May 22, 2007, 5:18:59 PM5/22/07
to
Is it possible to get a list of allowed roles/users for a single page on the
site, which use a role based forms authentication?

<authorization>
<allow roles="*">
<deny users="?" />
</authorization>

I know, to view the web.config using System.Xml is not a big problem, is
there any standard implementation to access that configuration?

Thank you.


Michael Nemtsev

unread,
May 23, 2007, 7:56:09 AM5/23/07
to
Hello Alexey,

Use WebConfigurationManager, which allows to open any section of config

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

AS> Is it possible to get a list of allowed roles/users for a single
AS> page on the site, which use a role based forms authentication?
AS>
AS> <authorization>
AS> <allow roles="*">
AS> <deny users="?" />
AS> </authorization>
AS> I know, to view the web.config using System.Xml is not a big
AS> problem, is there any standard implementation to access that
AS> configuration?
AS>
AS> Thank you.
AS>


Alexey Smirnov

unread,
May 23, 2007, 5:48:15 PM5/23/07
to
On May 23, 1:56 pm, Michael Nemtsev <nemt...@msn.com> wrote:
> Hello Alexey,
>
> Use WebConfigurationManager, which allows to open any section of config
>

Well, this is not really want I need. I don't want to parse the
web.config, because in this case I would need to interpret the
authorization tags.

Probably I have to consider the ASP site maps

Thanks anyway :-)

0 new messages