Seems to work on most machines, check the vent in the fuel cap. Deeres seem to have been hit with this problem for a while. If it works clean the vent once in a while during fillup.
The gas cap is a good starting point, but if that don't fix it I would check the pickup tube in the tank. I have had several get object floating in the tank and suck up against the tube and after it sets the object goes back to the bottom of the tank.
So I put new gas in it a new speak plug and cleaned the carb not sure how to clean the vent in the gas cap but it has a vent run up right beside the filler neck and that seems to be clean and working but still shuts down after 20 minutes of running even with the deck off and pto off
Ok I checked the spark that is fine I also replaced the fuel lines now I can see the fuel delivery and it barely trickles out of the fuel pump is there anywhere I can buy a rebuild kit for it our where is the best place to but a new one