RE: RoleProvider Roles cookieName reading/setting
- From: wawang@xxxxxxxxxxxxxxxxxxxx ("Walter Wang [MSFT]")
- Date: Thu, 20 Sep 2007 08:43:20 GMT
Hi Chuck,
I think accessing Roles.CookieName at this moment might cause recursive
calling since the RoleProvider haven't get fully initialized yet.
If your objective here is to read the CookieName, you might use following
workaround:
Configuration cfg =
System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("~");
System.Web.Configuration.RoleManagerSection rm =
(System.Web.Configuration.RoleManagerSection)cfg.GetSection("system.web/role
Manager");
string cookieName = rm.CookieName;
Could you please tell me why you need to change it in your RoleProvider's
initialize method?
Regards,
Walter Wang (wawang@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Prev by Date: Re: Best Practices and script/executable directories
- Next by Date: Recommendation for simple authentication needs
- Previous by thread: HTTP Digest Authentication against Windows account
- Next by thread: RE: RoleProvider Roles cookieName reading/setting
- Index(es):