Why is it that you can't change a simplemembership username. I've tried
MembershipUser memUser = Membership.GetUser(existingUser);
memUser.UserName = model.UserName;
Membership.UpdateUser(memUser);
I get that MembershipUser.UserName is read only. There are no other available methods for changing the username.
Is there a way around this problem?
Edit: New problem. When the line
var confirmationToken = WebSecurity.CreateUserAndAccount(model.UserName, Request["Password"], new { NameFirst = model.NameFirst, NameLast = model.NameLast, ContactId = newContact.ContactId },true);
is run, I get a MembershipCreateUserException and says the username is already in use (it really isn't). It manages to add the user to my UserSecurity table(UserProfile) but doesn't add it to the membership table. It's attempting to add the user in the webpages_Membership table and not the UserMembership table I created.