where specifically does your knee hurt?
how much do you normally ride, i.e. was a 34 mile ride an epic ride for you or something you do daily?
are the fit measurements for this new bike identical to your old bike? if not, what is different?
likely a fit issue, change from what you're biomechanically accustomed to, and riding fitness issue
ice and advil. then stretch.