all groups > dotnet windows forms designtime > february 2006 >
You're in the

dotnet windows forms designtime

group:

Load an assembly both at design and run time ....



Load an assembly both at design and run time .... Nicola Cisternino
2/7/2006 12:00:00 AM
dotnet windows forms designtime: 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.
Re: Load an assembly both at design and run time .... jokiz
2/15/2006 2:42:40 AM
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...
AddThis Social Bookmark Button