Gastroenteritis can be caused by viruses, bacteria or parasites. Infection can happen by having close contact with a sick person, touching contaminated surfaces, sharing utensils, or having tainted food or water. Viral gastroenteritis is sometimes called stomach flu. It isn't the same as influenza, also called the flu.