Hi,
I have noticed that there are duplicates of some users in my sql database. Each pair of entries have different application IDs. For example, when I do the following, duplicate names are displayed for most of the existing users:
foreach (MembershipUser user in Membership.GetAllUsers())
{
DropDownList1.Items.Add(user.UserName.ToString());
}
I suspect that this is something to do with the connections strings in web.config, but I don't know much about how this has to be formatted, apart from what has been generated or I have copied off the web. I do know that the connection string should be "/" (??) but can be different if desired. Here are the relevant parts of web.config, if anyone could explain what I have done wrong I would appreciate it.
<roleManager enabled="true" />
...
<membership defaultProvider="AspNetSqlProvider" userIsOnlineTimeWindow="5">
<providers>
<add
name="AspNetSqlProvider"
type="System.Web.Security.SqlMembershipProvider,
System.Web,
Version=2.0.3600.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqlServer"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
applicationName="/"
requiresUniqueEmail="true"
minRequiredPasswordLength="8"
minRequiredNonalphanumericCharacters="1"
passwordFormat="Hashed"
description="Stores and retrieves membership data from
the local Sql Server database"/>
</providers>
</membership>
...
<profile defaultProvider="SqlProfileProvider">
<providers>
<remove name="AspNetSqlProfileProvider"/>
<add name="SqlProfileProvider"
type="System.Web.Profile.SqlProfileProvider"
connectionStringName="LocalSqlServer"/>
</providers>
<properties>
<add name="FirstName" type="string"/>
<add name="LastName" type="string"/>
<add name="Company" type="string"/>
<add name="SubIDs"
type="System.Collections.Specialized.StringCollection"
serializeAs="Xml" />
</properties>
</profile>