I thought it was Life but wasn't sure. I'm pretty sure it didn't last two years. I think it debuted in the fall alongside the second season of Chuck, and most certainly wasn't airing when Chuck's second season returned from the holiday break.
The first episode aired in sept 2007 and the final episode aired april 2009, so about a year and a half. 2 seasons worth of episodes, acording to the original air dates listed by hulu.
back on topic, Castle and White Collar are fairly entertaining shows.