Barking up the wrong tree

1. Looking in the wrong place for the solution for a problem. 2. Thinking the answer is one thing when it is not.