$assertoff giving error during compilation

In reply to vishnu_intel:

Can you show some part of code? Or some pseudo-code that gives the above error?

I guess that you are using $assertoff in wrong place. $assertoff must be used in some procedural blocks like initial/always blocks.