Hi all,
I've developed a custom control that uses a public interface and can be
plugged using external assemblies that implements this interface.
The assembly, therefor, must be loaded dynamically using reflection
(Reflection.Assembly.LoadFrom("<assemblyname")).
Now, all works fine at run time but at design time a
FileNotFoundException exception is raised, ergo: the assembly is missing ...
How i can load the assembly both at design and run time (I'm using .NET
1.1) ?
I've already tried put to the assembly into the "PublicAssemblies"
folder .... without results :-(
It's very strange... i've also tried to load the assembly using the
complete static path (C:\bla\bla\bla\assembly.dll ....) .... but at
design time occurs the usual exception ...
Any idea ?
Thanks.
Nicola.
jokiz - 15 Feb 2006 10:42 GMT
i believe controls are not designed to work this way (pluggable) and i
doubt that you'll be able to make this work and function at
designtime...