Viral gastroenteritis is a viral infection of your gastrointestinal tract. It can cause diarrhea, vomiting, and other symptoms. In most otherwise healthy adults, it usually runs its course in a few days. The biggest risk is dehydration.