The object is in a detached state. This operation cannot be performed on an ObjectStateEntry when the object is detached. ...