G
Guest
Here is my code (simplified):
AppDomainSetup cfg = new AppDomainSetup();
cfg.ConfigurationFile = "app.config";
_domain = AppDomain.CreateDomain(this.txtDomainName.Text, null, cfg);
_domain.ExecuteAssembly(Application.ExecutablePath);
In app.config, I specify a different version using supportedRuntime tag. But
I do not get expected result; I do get correct appSettings specified in
app.config for the new domain. It seems that the newly created AppDomain is
always run on the runtime of the default domain.
I want to know if this behavior is not configurable.
AppDomainSetup cfg = new AppDomainSetup();
cfg.ConfigurationFile = "app.config";
_domain = AppDomain.CreateDomain(this.txtDomainName.Text, null, cfg);
_domain.ExecuteAssembly(Application.ExecutablePath);
In app.config, I specify a different version using supportedRuntime tag. But
I do not get expected result; I do get correct appSettings specified in
app.config for the new domain. It seems that the newly created AppDomain is
always run on the runtime of the default domain.
I want to know if this behavior is not configurable.