Are you trying to program with external power or power via the pickit?
Does it program if you have the ON-OFF switch in the OFF position and set the pickit to supply power?
Double check the PCB footprint for the mosfet. The pin numbers on the schematic are correct, but that doesn't mean the PCB matches.
Does it program if you have the ON-OFF switch in the OFF position and set the pickit to supply power?
Double check the PCB footprint for the mosfet. The pin numbers on the schematic are correct, but that doesn't mean the PCB matches.