Полный русско-английский словарь
To take great pains, to be at great pains, to try one's hardest/best, to try all ways take great pain ;