Dishwasher drain problem

My dishwasher starts fine goes through the 1st wash cycle then does nothing. The water is standing in the bottom of the dishwasher, in order to remove the water I have to cancel the wash. So in other word it drains when I cancel the wash but not during the wash cycle.