kenmore oven door willnot lock or unlock

Hello. I have a kenmore oven mo.#95792000, ser.#RK0911628. I am having problems with the door not wanting to lock when put into self clean mode. I can manually lock the door by moving the lock link rod on the back of the unit, but the oven will not clean and will flash error code F5-E1. Any ideas? Thanks for your help.