The Frobenius conjecture in dimension two