could be many things...
sometimes I have issue that my MPlab forgot that I want to use power from my ICD2 during programming.
I have to go back in settings, power tab, and re-check the option.
You may also watch the power status in that window.