340 wont idle

I have a 340 that wont idle. It will idle about 30secs and die. I replaced the carb and it hasnt made a difference. Any suggestions on what it could be?