Did you set internal osc?

Right after you compile, the screen comes up to program the chip. if you click view -> configuration. You can set INTOSC.

a place I've tripped up before, just a thought.

hope it helps