Get your saddle height in the ballpark first before worry too much about other stuff. Wrong saddle height can be knee pain but a bunch of other stuff also can be knee pain too.
Are you pushing too high a gear? Is the crank a different length than the other bike? If you set saddle height based on the other bike, then did you more correctly measure to the pedal at the bottom of it's stroke or wrongly from the BB?