Alphons Leopold Mielich, Im Palast