You cannot change it. Each instance of AppDomain has a fixed app.config, which is installed using an instance of AppDomainSetup when creating a new application domain. Although you can get configuration information through AppDomain.SetupInformation , it has actually become read-only at the moment.
Given this, one option would be to create a new application domain from your Home function and configure the domain to use the required app.config.
Sean
source share