A Frederick County man will spend nearly two decades behind bars for soliciting sex on Craigslist while impersonating a woman.