I've the following scenario, an application needs to load several users
assemblies to a seperate appdomain, load it's own code (which reference
to a 3rd party dll) and then execute its code, which will use the users'
dll.
I've been unable to make this work.
The directory structure is something like:
c:\mine\main.exe
c:\mine\my_app_domain_code.dll
C:\mine\3rd_part_library.dll
C:\user\library.dll
c:\user\referenced_library.dll
I tried playing with the AppDomain's ApplicationBase, PrivateBinPath,
etc. But it doesn't seem to solve what I need.
I /can/ get all those assemblies to run if I use Assembly.LoadFrom(),
but I want to use Assembly.Load().
The reason for that is that I need to resolve referenced assemblies
which Assembly.LoadFrom() does not allow. And the 3rd party library uses
code like this:
Type.GetType("user type");
When I'm tyring to load the assebmlies with Assembly.LoadFrom(), that fails.
Any ideas what I can do?