Barry’s first match with Gresford Athletic saw the Wrexham area club advance into the fourth round of the Welsh Cup.
Barry failed to gel against their Cymru North opponents, with a goal-less first half that neither club were able to control.
Gresford were the better side in the second half, with Dominic Deacon’s shot forcing Mike Lewis to tip the ball over the bar.
The visitors took the lead through Charlie Mann in the 63rd minute, having increased the pressure on the Barry defence.
Barry tried to force an equaliser, but failed to seriously trouble Jonathan Hill-Dunt, the former Prestatyn goalkeeper in the Gresford goal.
With the minutes ticking away, Barry continued to pressurise to try and get a goal to take the match to penalties, but, at the other end, substitute Jacob Barratt scored in the 93rd minute to secure the win for the away team.