Raycast is always FALSE and line cast is always TRUE.... what's wrong here?

You’ve just necroed a 10 year old thread. Please don’t do this, simply create your own thread and use code-tags too.

Your code doesn’t show anything that highlights any problem. The only comment on it is that you’re passing a Vector3 when the 2D query you’re using takes Vector2 so it’ll ignore the Z. There’s nothing wrong with this basic query so I would suggest, if you want help, creating your own thread and posting more information.