Can you give us more context?
"Woman" is almost always preferred because it respects one's personal identity, as opposed to the compulsory status of biological sex, which is often used as a source of belittlement and/or bigotry against women. (and carries a whole plethora of baggage when people decide they get to judge someone's female-ness)
But it doesn't mean that you shouldn't generally be able to use the term "female" without causing social friction, if you have a good amount of social grace.
(its actually quite normal in fantasy/scifi circles, for example)
I think you may be asking the wrong question- you may want to explain what you were talking about and ask what specific phrases or situations might have unsettled people.
Maybe it was just a weirdly specific English faux pas, or maybe you have a friend who is a little extra sensitive after bad experiences and who could use your support. Maybe its a total miscommunication- who knows?