Hi there,
I know an application can specify in its config file an assembly (DLL) that
it depends on and where to get it from, e.g (person.dll deployed on a local
webserver):
<dependentAssembly>
<assemblyIdentity name="person"
publicKeyToken="30740f778431d362"
culture=""/>
<codeBase version="1.0.0.0"
href="http://localhost/tms/person.dll"/>
</dependentAssembly>
Is it possible to achieve the same thing programmatically (in C#), instead
off from a config file? If so, can you show me what .net classes to use?
Also, is it possible to get a remote dll via a different protocol, like tcp
(similar to remoting)?
Thanks for your help.
Evan
Manoj G [MVP] - 30 Oct 2005 09:22 GMT
The dependentAssembly element is a part of the assembly binding
configuration that is used by the runtime when loading assemblies. I dont
think this can be changed programmatically (at least in managed code. Not
sure if a custom CLR host can change this). However, if you are just looking
at loading assemblies, using C# code, from a particular location, say a URL,
you can use the Assembly.LoadFrom() function.

Signature
HTH,
Manoj G
MVP, Visual Developer
http://msmvps.com/manoj
> Hi there,
> I know an application can specify in its config file an assembly (DLL)
[quoted text clipped - 21 lines]
>
> Evan