When you say it runs good for a while, is that when it is cold and first warming up? If so i assume this is when the enrichment valve is open, then when it warms and closes it runs rough and stalls?
if so this would imply that the idle circuit is either set too lean or plugged. Have you tried...