VDD Error with 18F24J10 after turning off XINST
Are you using the right microcontroller definition?

As stated in the device datasheet http://ww1.microchip.com/downloads/en/DeviceDoc/39682E.pdf  this microcontroller does not have configuration fuses, it loads the configuration at the end of program memory (0x3ff8 to 0x3fff).

If you extrapolate this to the configuration registers (config1l, config1h, config2l, config2h, config3l, config3h, devid1, devid2) it is the address matching the devid1 register which should be read-only...