Any pictures? May not be an infection.. Could be clumps of yeast or possibly mold along the surface. Moldy batches can be saved by simply racking your batch from under the mold across the top. Pics will help us determine if it's infected or not... Don't toss the batch yet!
"Brewers enjoy working to make beer as much as drinking beer instead of working."