ICD3err0045 - PIC16F819 Programming
That error indicates that the target device isn't powered. Check that the supply to the Vdd pin is present.

The use of a voltage divider is probably the cause of the problem. Use a proper regulator.

The Vdd pin should be decoupled.