In the console application you will need STAThread appartment for it to work.
But WPF is different.
I would advise you using the File Dialogs only after the window starts and the Main Thread starts working.
Try showing your dialog in some MainWindow event of its lifecycle.