What does Barking up the wrong tree mean?

Barking up the wrong tree meaning in Idioms Dictionary

if you should be barking within the incorrect tree, it indicates that you have totally misunderstood some thing or are completely wrong.