For number of episodes it would probably be Doctor Who (713 episodes approx with more being made), and then Star Trek (703 live action eps in 5 different series to date).
If it's based on first year/last year then maybe the Twilight Zone would qualify (1959-2003).