public AppDomain GetExtAppDomain() { Evidence evi = AppDomain.CurrentDomain.Evidence; AppDomainSetup ads = new AppDomainSetup() { ApplicationBase = AppDomain.CurrentDomain.BaseDirectory, DisallowBindingRedirects = false, DisallowCodeDownload = true, ConfigurationFile = AppDomain.CurrentDomain.SetupInformation.ConfigurationFile }; var appDomain = AppDomain.CreateDomain("ad", evi, ads); var loadedAssembly = AppDomain.CurrentDomain.GetAssemblies(); foreach (var loaded in loadedAssembly) { try { appDomain.Load(loaded.GetName()); } catch (Exception ex) { SGLogger <AutumnBox_GUI_Calller> .Debug(ex); } } return(appDomain); }