title: MembershipCreateUserException: The username is already in use
body: <p>I've created the simple membership tables myself so that I have the ability to update the username field(can't do this if you just let it autocreate it for you).</p>
  
  <pre><code>var confirmationToken = WebSecurity.CreateUserAndAccount(model.UserName, Request["Password"], new { NameFirst = model.NameFirst, NameLast = model.NameLast, ContactId = newContact.ContactId },true);
  </code></pre>
  
  <p>When I run this line of code I keep getting the error message that the Username already exists. What is weird is that there is no username in the table with the same name and it does it for every registration. It has something to do with me creating the tables myself probably but I can't see where it's having this problem. </p>
  
  <p>It does add it to my UserProfile table (called it UserSecurity) but doesn't include the user in the membership table.</p>
  
  <p>Edit: The line above is using the webpages_Membership table. I need it to use my UserMembership table instead.</p>