Substitute Padraig Amond's last-minute strike gave Accrington all three points against Aldershot.
Stanley could have gone in front early on but Lee Molyneux's inswinging corner was cleared off the line.
The goal came when Amond poked home his fourth of the campaign after Shots goalkeeper Jamie Young failed to deal with a high ball.
The visitors misery was compounded in injury-time when Peter Vincenti was sent off for violent conduct.
VIEWS FROM THE DRESSING ROOM
Aldershot Town manager Dean Holdsworth told BBC Surrey:
"We worked extremely hard to get something and having looked at it (the goal) again it's a foul on Jamie Young, no attempt to play the bal. It's a cruel way to come all this way and work so hard.
"You want the referee to do his job properly and I think he got affected by the crowd a lot and their bench and I think that decision going against us is a poor decision.
"The fella has not played for the ball and has just run to obstruct Jamie Young and I don't know why he hasn't given it, but I'm disappointed to lose this game when we worked so hard.
"Well I saw it (sending off) and Peter can't react like that, he'll get punished and he can't allow the emotions to over boil and I'm disappointed as we'll lose him for three games."
Live Text Commentary
Full Time The referee blows his whistle to end the game.90:00 +1:33 Dismissal
Dismissal Peter Vincenti sent from the field by the ref for violent conduct.89:15 Goal scored
Goal! - Padraig Amond - Accrington 1 - 0 Aldershot Padraig Amond finds the net with a goal from the edge of the penalty box to the top right corner of the goal. Accrington Stanley 1-0 Aldershot.88:39
Free kick awarded for a foul by Peter Vincenti on Romuald Boco. Craig Lindfield takes the direct free kick.87:39
Inswinging corner taken left-footed by Aidan Chippendale, Peter Vincenti makes a clearance.86:29
Unfair challenge on Peter Murphy by Michael Rankine results in a free kick. Peter Murphy takes the free kick.79:27
Michael Rankine fouled by Rob Atkinson, the ref awards a free kick. Josh Payne crosses the ball in from the free kick, Padraig Amond makes a clearance.75:58
Craig Lindfield sends in a cross, Padraig Amond produces a header from inside the area that goes over the bar.74:31
A cross is delivered by Craig Lindfield, clearance by Sonny Bradley.71:06
Corner taken by Lee Molyneux from the left by-line, save by Jamie Young.70:12
Inswinging corner taken left-footed by Lee Molyneux played to the near post, Peter Vincenti manages to make a clearance.70:12 Substitution
Substitution Padraig Amond comes on in place of Karl Sheppard.69:16
Piero Mingoia crosses the ball, clearance made by Sonny Bradley.67:46 Substitution
Substitution Aaron Morris on for Alex Rodman.64:11
Piero Mingoia challenges Ben Herd unfairly and gives away a free kick. Jamie Young takes the direct free kick.62:34
Sonny Bradley fouled by Karl Sheppard, the ref awards a free kick. Jamie Young takes the direct free kick.60:02 Substitution
Substitution Peter Vincenti joins the action as a substitute, replacing Danny Hylton.60:02 Substitution
Substitution Piero Mingoia joins the action as a substitute, replacing Will Hatfield.60:02 Substitution
Substitution Matthew Whichelow goes off and Aidan Chippendale comes on.60:02
Craig Lindfield crosses the ball, Karl Sheppard takes a shot.
Alex Rodman crosses the ball, save by Ian Dunbavin.56:27
Peter Murphy fouled by Josh Payne, the ref awards a free kick. Lee Molyneux crosses the ball from the free kick left-footed from right wing, Josh Payne manages to make a clearance.55:36
Karl Sheppard takes a shot. Save made by Jamie Young.54:16
The referee blows for offside against Karl Sheppard. Jamie Young takes the indirect free kick.50:52
Corner taken by Josh Payne from the left by-line.50:17
Corner taken right-footed by Josh Payne from the right by-line, clearance by Rob Atkinson.49:08
Michael Rankine gives away a free kick for an unfair challenge on Craig Lindfield. Direct free kick taken by Peter Murphy.48:42
Free kick awarded for a foul by Michael Rankine on Peter Murphy. Direct free kick taken by Ian Dunbavin.47:13
Craig Reid takes a shot. Save by Ian Dunbavin.46:36
Lee Molyneux gives away a free kick for an unfair challenge on Alex Rodman. Direct free kick taken by Josh Payne.45:01
The second half kicks off.45:01 Substitution
Substitution (Aldershot) makes a substitution, with Michael Rankine coming on for Adam Mekki.45:00 +1:30 Half time
Half Time The referee blows for half time.45:00 +0:50
Inswinging corner taken by Josh Payne from the right by-line played to the near post, clearance by Craig Lindfield.41:15
The official flags Karl Sheppard offside. Free kick taken by Jamie Young.40:58
Josh Payne has an effort at goal from outside the box which goes wide right of the target.37:36
The referee blows for offside. Anthony Tonkin takes the free kick.36:21
Corner taken right-footed by Josh Payne from the right by-line, Danny Hylton takes a shot.33:32
Luke Joyce gives away a free kick for an unfair challenge on Alex Rodman. Direct free kick taken by Anthony Tonkin.32:47
Troy Brown concedes a free kick for a foul on Matthew Whichelow. Free kick taken by Lee Molyneux.30:48
Matthew Whichelow produces a right-footed shot from deep inside the penalty area which goes wide of the left-hand post.29:58
Unfair challenge on Lee Molyneux by Adam Mekki results in a free kick. Lee Molyneux takes the free kick.28:12
Shot from outside the box by Romuald Boco misses to the left of the target.27:50
Josh Payne takes a shot. Save by Ian Dunbavin.27:17
Unfair challenge on Troy Brown by Luke Joyce results in a free kick. Ben Herd takes the free kick.26:45
Shot from just outside the penalty area by Danny Hylton misses to the left of the target.26:00
Unfair challenge on Rob Atkinson by Danny Hylton results in a free kick. Rob Atkinson takes the direct free kick.24:40
Free kick awarded for an unfair challenge on Alex Rodman by Craig Lindfield. Ben Herd takes the direct free kick.23:40
The assistant referee flags for offside against Karl Sheppard. Indirect free kick taken by Jamie Young.20:58
Will Hatfield concedes a free kick for a foul on Adam Mekki. Free kick taken by Jamie Young.20:31
Inswinging corner taken from the right by-line by Will Hatfield.20:12
Romuald Boco takes a shot. Anthony Tonkin gets a block in.17:34
Adam Mekki handles the ball and concedes a free kick. Ian Dunbavin takes the free kick.15:00
Craig Reid is ruled offside. Ian Dunbavin takes the indirect free kick.14:26
The official flags Matthew Whichelow offside. Jamie Young restarts play with the free kick.13:24
Foul by Ben Herd on Will Hatfield, free kick awarded. Lee Molyneux takes the direct free kick.12:21
Outswinging corner taken by Will Hatfield, clearance made by Anthony Tonkin.11:12
Corner taken right-footed by Will Hatfield from the right by-line to the near post, Romuald Boco takes a shot. Anthony Tonkin gets a block in.10:06
The assistant referee flags for offside against Matthew Whichelow. Jamie Young takes the indirect free kick.8:23
Craig Reid produces a right-footed shot from just outside the box that misses to the right of the goal.6:35
Craig Reid gives away a free kick for an unfair challenge on Matthew Whichelow. Free kick taken by Lee Molyneux.5:52
Free kick awarded for a foul by Rob Atkinson on Craig Reid. Jamie Young takes the indirect free kick.4:17
Karl Sheppard takes a shot. Jamie Young makes a save.0:00
The ref blows the whistle to begin the match.
Live data and text provided by our data suppliers