Loading Assemblies from several directories.
From: Ayende Rahien (Ayende_at_ayende.com)
Date: 03/26/05
- Next message: James Han***: "Need to Detect if I'm running on a Server version of Windows"
- Previous message: Eric: "Re: Proposed MSDN Subscription Changes - VERY BAD!!!"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 26 Mar 2005 18:38:33 +0200
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?
- Next message: James Han***: "Need to Detect if I'm running on a Server version of Windows"
- Previous message: Eric: "Re: Proposed MSDN Subscription Changes - VERY BAD!!!"
- Messages sorted by: [ date ] [ thread ]