How can I run a WPF application in a new AppDomain? ExecuteAssembly fails
问题 I'm trying to launch a WPF application from a Console application, using Application Domains, but when I do, I receive unexpected errors. Running the WPF application standalone, works. This code works, too: var baseDirectory = AppDomain.CurrentDomain.BaseDirectory; var path = string.Format("{0}AddressbookDesktop.exe", baseDirectory); var processInfo = new ProcessStartInfo(path, ""); Process.Start(processInfo); But this code fails with the error below. The error appears to be in the