I think this might be a weird configuration problem. I've been adding a UI to a website so admins can manage the user data using the Profile, Role, and Membership bits. Working pretty well, they can update roles, profile info, all that stuff.
When I got to testing the delete, though, I'm getting an exception of an FK violation UserId in aspnet_Profile running this code:
ProfileManager.DeleteProfile(lblUsername.Text)
Membership.DeleteUser(lblUsername.Text)
Here's the part I think points toward a config issue. When I look at aspnet_users, I see two entries for each user; one associated with the application in question, and one with "/". The aspnet_profile record is pointing to the user associated with my "real" application.
I also coded the delete this way, thinking I'd make sure to get all profiles associa ...
Go to the complete details ...