"The result we got was contrary to expectations"
*"It resulted contrarily to expectations." What did? You can't say the result resulted.
So, there's an adverb meaning 'opposite'. Now you have to make the other components work.
- For Teachers