469,599 Members | 2,666 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,599 developers. It's quick & easy.

Membership.GetAllusers Method always returns FALSE. Help me.

Hi All,
I am new to Membership feature in ASP.NET 2.0. I am trying the
following scenario.

Environment : WinXP SP2
Framework: .NET v2.0, VS.NET 2005.
User Data Storage : ADAM.

I have an Web Application. Web.Config file has Windows Authetication
and added
----------------------- Web.Config
<membership defaultProvider="MyADMembershipProvider">
<add name="MyADMembershipProvider"
type="System.Web.Security.ActiveDirectoryMembershi pProvider,
System.Web, Version=, &#xA; Culture=neutral,
connectionUsername="CN=superuser,CN=people,OU=Test OU,O=TestO,C=US"
connectionPassword="Windows2003" connectionProtection="None"
enableSearchMethods="true" />

<add name="ADConnectionString" connectionString="LDAP://localhost:389/

I have added 2 users in ADAM store. Now i have written

MembershipUserCollection users = Membership.GetAllUsers();

if (users.Count 0)
foreach (MembershipUser user in users)

Response.Write("no users found");

The GetAllusers() method always returns 0 users.

In this application i have to use the Authentication Mode has Windows.
I wanted to use the Membership Provider feature to validate the user
against ADAM. Please suggest me if i am doing anything wrong here.

Thanks & Regards

Mar 15 '07 #1
0 1057

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Arjen | last post: by
1 post views Thread by Guoqi Zheng | last post: by
4 posts views Thread by =?Utf-8?B?U2FsYW1FbGlhcw==?= | last post: by
reply views Thread by Fendi Baba | last post: by
reply views Thread by =?Utf-8?B?QV9SZXB1YmxpY2Fu?= | last post: by
3 posts views Thread by Michael Lang | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.