What is causing - The target device is not ready for debugging?
This micro doesn't contain debug executive inside, you can only program it via PGC/PGD, not debug. In order to debug you need a special part AKA debug header, see here for exact part number -> http://ww1.microchip.com/downloads/en/DeviceDoc/51292R.pdf