title: An entity object cannot be referenced by multiple instances of IEntityChangeTracker
body: <p>I have an Edit controller action  (Httpost) with following code:</p>
  
  <pre><code> var person = membershipService.GetPersonByUserName(userName, out userAccount);
  
              if (!email.Equals(person.Email)) {
                  person.Email = email;               
                  CRRep.UpdatePersonEmail(person);
              }
   public void UpdatePersonEmail(Person person)
          {              
              try
              {                     
                 context.Entry(person).State = System.Data.EntityState.Modified;
                 context.SaveChanges();
              }
              catch (DbEntityValidationException dbEx)
              {
                  foreach (var validationErrors in dbEx.EntityValidationErrors)
                  {
                      foreach (var validationError in validationErrors.ValidationErrors)
                      {
                          Trace.TraceInformation("Property: {0} Error: {1}", validationError.PropertyName, validationError.ErrorMessage);
                      }
                  }
              }
          }
  </code></pre>
  
  <p>But I am getting following error:
  An entity object cannot be referenced by multiple instances of IEntityChangeTracker.
  Please suggest me solution to it.</p>