[verb た-form] + 甲斐もなく [noun] + の + 甲斐もなく
甲斐もなく means "in spite of": someone made an effort and it didn't pay off. It follows a verb in the た-form, or a noun with の, and the clause after it is the disappointing result.
What comes before 甲斐もなく has to be something someone did to get a result – studying, treatment, practice, persuading. A plain event or a reason doesn't fit, and for those you use のに.
甲斐もなく belongs to writing and formal speech: news reports, narratives, a speech looking back. ちりょう治療のかい甲斐もなく is the stock phrase for a death after medical care. In conversation you'd say がんばった頑張ったのに or せっかくがんばった頑張ったのに.
The positive side, where the effort did pay off, is かいがある甲斐がある.