Might be worth ticking the /MCLR box in the Vdd section ?
I only use PicKit 3 unit, so not sure if that will help. Worth a shot though.
Also, you haven't got your fingers all over the ICSP connector while programming have you?
I only use PicKit 3 unit, so not sure if that will help. Worth a shot though.
Also, you haven't got your fingers all over the ICSP connector while programming have you?