Material desires? Nothing to worry

Q. It is said that even if a person is full of material desires he is directed to worship Lord Shri Krishna. then why it is said that it is an offense to keep material attachments while chanting the mahamantra?

A. It is offense as you said but if we go to Krishna with material desires even while doing offense we will be slowly purified and attain pure devotional service. It is offense and will be obstacle to achieve pure devotional service. But going to Krishna even with desires will begin one’s way towards
Krishna. On the way he will be cleansed of desires as well.

How is it possible for anybody who is chanting for material desires to give up his very purpose of chanting ? what is the remedy?

He will not give up desires but the effect of chanting is the desires will dissolve. As the desires dissolve because of his chanting holy names he will be aware of real aim of holy names i.e. love of Godhead.

Why go through tedious devotional service than to worship demigods as lord Shiva who are quickly pleased ?

Because you can get pure devotional service in the end even if you don’t desire it right now by worshiping Krishna for desires. But if you worship demigods then that pure love of Godhead will not be achieved.

By devotional service you will be free from material world. This cannot be achieved by worshiping demigods.