can you post your whole code(including configuration fuses), schematic and tell which device programmer you're using?