It's a shock when you try to open the oven door and it is locked tight. This can happen sometimes after you've run the self-cleaning cycle. The cleaning process raises the temperature inside the oven much higher than normal so food will burn off the inside, and the door locks automatically as a safety precaution and stays locked until the temperature has lowered to a safe point. If you're trying to open the door during the cleaning process, it shouldn't budge, but if the door has cooled down and the door remains locked, that's a problem. Here are things to try when the door is stuck.
Reset The Electronic Controls
Cut off the power to the oven so the control panel can reset. The easiest way to do that might be at the electrical panel. Once the power is off, leave it off for a few minutes and then switch it back on. This should reset the settings and the door might unlock if the problem is with the electronics. However, this won't work if a part is broken.
Check The Error Codes
Your oven display panel might be showing an error code when the door is stuck. Find the meaning of the code in the manual that came with your oven. If you can't find the manual for your oven, as long as you know the brand and model of your oven, you can search online for a digital copy to view. Once you've identified the problem, the manual might tell you how to fix it. It could be something as simple as manually unlocking the door or pressing buttons in a specific order on the control panel. However, manually opening the door might not be possible since the top of the range probably won't flip up so you can access the latch inside. When the door is locked shut, work usually has to be done through the back, and that requires an appliance repair technician.
Call An Appliance Repair Service
If resetting the power to your oven doesn't fix the situation, there is probably not any DIY repair you can do. Fortunately, you can usually get quick service from an appliance repair service so you don't have to be without an oven for too long. When the door is locked and won't open, one possible cause is a bad door lock assembly or lock switch. The repair technician can try to unlock it while bypassing the electronics of the oven. The damaged parts can then be replaced so the problem won't happen again when the door locks. Another potential problem is with the temperature sensor. If it's malfunctioning, it won't detect when the temperature is low enough to unlock the door. The sensor is another part the technician can test and replace if necessary.