1

I am using the ASP membership services to create and manage users. I notice that on user account registration everything works fine... Until I call Roles.AddUserToRole, and suddenly I get a second user account created in the aspnet_users table. Can someone explain this? I am quite certain that I should only ever have one user account in the database per registered user...

LoneRanger
  • 1,909
  • 2
  • 13
  • 13
  • Could you provide some more information? How and when are these users being created? What does the data in the aspnet_users table look like for each user? – Samuel Meacham Jul 17 '10 at 00:24

2 Answers2

4

Roles and membership are separate concerns, e.g. do not depend on one another, so the multiple records in aspnet_Users do indicate that you may want to examine your configuration and ensure that your membership and roleManager elements either:

  1. both have NO applicationName defined (default '/') or
  2. both have the SAME applicationName defined
Sky Sanders
  • 36,396
  • 8
  • 69
  • 90