York City have been drawn away to League One Barnsley in the Johnstone's Paint Trophy first round.
The Minstermen are due to visit Oakwell in the week beginning 1st September.
Last season York went out of the competition to another South Yorkshire side, Rotherham United, having already defeated them the previous year.
Other ties in the north-east section of the draw are Oldham Athletic v Bradford City, Sheffield United v Chesterfield and Notts County v Mansfield Town.
|You can now use your social login to comment on our front page articles using your Facebook, Twitter, Google or LinkedIn accounts!|