Do you have anything on RB5/PGM?
If it's left floating during programming it can cause problems.

A pull-DOWN resistor will help if it's floating.
<br>