It was composed between 1838 and 1840 . It was first performed at the Hofoper , Dresden on 20 October 1842 .
Written between July 1838 and November 1840 , it was first performed at the Hofoper , Dresden on October 20 , 1842 , and was the composer 's first success .