Re: Membership Management - problem reading users from SQL 2005
- From: PeterKellner <pkellnernews@xxxxxxxxxxxxxx>
- Date: Tue, 23 May 2006 07:24:17 -0700
On Tue, 23 May 2006 07:01:40 -0700, Pieter S <unifysica@xxxxxxxxxxx>
wrote:
Hello,
I've configured SQL server 2005 as my back-end data store via
aspnet_regsql.exe. I presume it was succesvol. Creating users en roles
programmatically is no problem. When I start the Web Site Administration
Tool I can see the created users and roles. But when I want to show them
by code I get an empty result.
..
.. Roles.GetAllRoles()
..
.. membership.GetAllUsers()
The roleManager is enabled in web.config.
Pieter,
The website config program uses your web.config so if that tool works,
so should your app. Very strange. I'd suggest downloading my
ObjectDataSource and trying it. It completely incapsulates Membership
and Roles (in code of course). If that works, you will see examples
of how to call the API working.
Good Luck,
Here is a link to the post with the MSDN article and code:
http://peterkellner.net/?p=24
Peter Kellner
http://peterkellner.net
.
- References:
- Membership Management - problem reading users from SQL 2005
- From: Pieter S
- Membership Management - problem reading users from SQL 2005
- Prev by Date: Membership Management - problem reading users from SQL 2005
- Next by Date: Re: Active Directory and Roles
- Previous by thread: Membership Management - problem reading users from SQL 2005
- Next by thread: Re: Membership provider extension?
- Index(es):