Standalone AtMega328P - Programming issues

Do you have AVCC connected to Vcc, and with 0.1uF caps on each to Gnd, also both Gnd pins connected?