HTC sync manager phone not connected problem solved.
Anybody still having this problem there is a very easy fix.
Go to settings/apps/HTC sync manager. Then choose to uninstall updates. Turn phone off and then on and plug into computer. Hey-presto problem solved.