title: Getting invalid email error when I try to update a user?
body: <p>I am trying to update the Comments for a user but when I try using the code below:</p>
  
  <pre><code>MembershipUser User = Membership.GetUser(UserName);
  User.Comment = "Whatever...";
  Membership.UpdateUser(User);
  </code></pre>
  
  <p>It throws the error:</p>
  
  <blockquote>
    <p>The E-mail supplied is invalid.</p>
  </blockquote>
  
  <p>I've checked the email right before I call <code>UpdateUser</code> and it's fine.  Can anyone see why this would be happening?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>Stack trace - </p>
  
  <pre><code>[ProviderException: The E-mail supplied is invalid.]
     System.Web.Security.SqlMembershipProvider.UpdateUser(MembershipUser user) +1583
     System.Web.Security.MembershipUser.Update() +111
     Security_Login.btnSubmit_Click(Object sender, EventArgs e) in c:\inetpub\V1\VerbalInk.Web\Security\Login.aspx.cs:40
     System.Web.UI.WebControls.Button.OnClick(EventArgs e) +115
     System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +140
     System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
     System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
  </code></pre>