Make shure your fuse settings are correct before you program the pic and if you are going to use a 20Mhz oscillator remember to add the line DEFINE OSC 20

Hope it helps
Sphere.