You have to make sure the AP Framework is appropriate for all 3 - in other words, from your point of view you have to install the correct version of the software that employs the AP Framework you have installed.
Are you downloading the software from ESRI's FTP site? If not, it's a good place to find which correct version you need.
Also, there is another thread with almost the exact same problem, if you serch for 'AP Framework' I'm sure you'll find it.