Johann Wilhelm Frey, Partie an der Donau