He received his earlier education at the gymnasium in Vienna, devoting himself chiefly to the study of jurisprudence; he also gave much time to the study of poetry, and many examples of his verses have survived.
After his ordination he was appointed curate in Hütteldorf, and later professor of church history and canon law at Salzburg, where Friedrich Prince Schwarzenberg, director of the Oriental Academy at Vienna, was among his pupils.