Check their keys. Ctrl-k linking is quick and easy, but you select them in the wrong order, and it links them together the wrong way round. The switch should have a 'target' key set to the same as the door's 'targetname' key.