RE: Loading assemblies from another AppDomain
- From: Günter Prossliner <gpointprossliner@xxxxxxxxxxxx>
- Date: Sat, 21 May 2005 08:46:11 -0700
Hi Vagif!
> My application creates an AppDomain and sets is base directory outside the
> directory of the creator. Then it needs to load in a newly created domain an
> assembly that is installed in the original (creator) domain. And fails, of
> coures, because new domain does not have this directory in it's probing
> path.
Have you checked the PrivateBinPath / PrivateBinPathProbe Properties from
the AppDomainSetup class?
// Set up the AppDomainSetup
AppDomainSetup setup = new AppDomainSetup();
setup.ApplicationBase = "(some directory)";
setup.PrivateBinPathProbe = "(probe directory)";
// Set up the Evidence
Evidence baseEvidence = AppDomain.CurrentDomain.Evidence;
Evidence evidence = new Evidence(baseEvidence);
evidence.AddAssembly("(some assembly)");
evidence.AddHost("(some host)");
// Create the AppDomain
AppDomain newDomain = AppDomain.CreateDomain("newDomain", evidence, setup);
OK?
br, GP
.
- Follow-Ups:
- Re: Loading assemblies from another AppDomain
- From: Vagif Abilov
- Re: Loading assemblies from another AppDomain
- References:
- Loading assemblies from another AppDomain
- From: Vagif Abilov
- Loading assemblies from another AppDomain
- Prev by Date: RE: Garbage Collection - Strange Results.
- Next by Date: Re: how to modify a existing resource file
- Previous by thread: Re: Loading assemblies from another AppDomain
- Next by thread: Re: Loading assemblies from another AppDomain
- Index(es):
Relevant Pages
|