L
Leo Tohill
This code gives surprising results. At the end, "test1" is "test" and
"test2" is null
AppDomainSetup setup = AppDomain.CurrentDomain.SetupInformation;
setup.PrivateBinPath = "test";
AppDomain.CurrentDomain.SetupInformation.PrivateBinPath = "test";
string test1 = setup.PrivateBinPath;
string test2 = AppDomain.CurrentDomain.SetupInformation.PrivateBinPath;
My deeper problem is that I want to set the PrivateBinPath property of the
current
domain, and it won't set, as shown by this code, and evidenced by the fusion
log that I
look at after I get a failure from an assembly.Load().
How do I get PrivateBinPath to work? As recommended, I am specifying a
folder relative to
ApplicationBase, but I have also tried other variations.
"test2" is null
AppDomainSetup setup = AppDomain.CurrentDomain.SetupInformation;
setup.PrivateBinPath = "test";
AppDomain.CurrentDomain.SetupInformation.PrivateBinPath = "test";
string test1 = setup.PrivateBinPath;
string test2 = AppDomain.CurrentDomain.SetupInformation.PrivateBinPath;
My deeper problem is that I want to set the PrivateBinPath property of the
current
domain, and it won't set, as shown by this code, and evidenced by the fusion
log that I
look at after I get a failure from an assembly.Load().
How do I get PrivateBinPath to work? As recommended, I am specifying a
folder relative to
ApplicationBase, but I have also tried other variations.