Re: C# DLL-plugin references
- From: "Ben Voigt [C++ MVP]" <rbv@xxxxxxxxxxxxx>
- Date: Wed, 11 Jul 2007 16:30:08 -0500
"Tim" <Tim.Vanlaere@xxxxxxxxx> wrote in message
news:1184164099.922590.145970@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I've been struggling for a while trying to run plugins in C#, which
have external references.
The plugins load, and I can invoke methods through reflection until
the method uses some code defined in an external assembly.
The error returned is in all cases:
"Could not load file or assembly 'MyAssName, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. The
system cannot find the file specified.".
The only sollution I could find so far, is to manually add references
to these assemblies in the host project, which defies the purpose of
the plugin-system.
Is there a way, without using the GAC, to reference these assemblies
at runtime?
The way I do it, is after I load each assembly, iterate through its
dependencies, and for each assembly not yet loaded, try to load it from the
plugin directory as well.
Thanks in advance,
Tim
.
- References:
- C# DLL-plugin references
- From: Tim
- C# DLL-plugin references
- Prev by Date: unrelated event killing an asynchronous thread in progress
- Next by Date: Re: String foreach problem
- Previous by thread: Re: C# DLL-plugin references
- Next by thread: C#, services and vbscript
- Index(es):
Relevant Pages
|