I am really confused from the thread. It has many different approaches. I am using picbasic pro 2.45 and Mpasm of mplab v7.22. I get the same error.

:__CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.

So, how can i set my configuration bits??? I am using 18f4520.