USB connection problem with Galaxy Ace
You need to download the correct version of kies from samsung website and after successful installation check for kies update.

also try toggling under

settings->development->USB debugging, w/wo connecting USB cable.