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

dotnet windows forms designtime

group:

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


Load an assmebly 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 assmebly both at design and run time ... Nicola Cisternino
2/7/2006 12:00:00 AM
Sorry,
double post ! ....

[quoted text, click to view]
Re: Load an assmebly both at design and run time ... Petar Repac
2/9/2006 9:36:26 PM
[quoted text, click to view]

The subsystem of .net that is responsible for loading asssemblies
is called Fusion.
It can be configured in registry, think the location is
HKLM\Software\Microsoft\Fusion

You can configure it to log successful and unsucessful assembly loads
in some folder and there see what assemblies was loaded and where .net
was trying to found them.

Re: Load an assmebly both at design and run time ... Petar Repac
2/9/2006 9:45:11 PM
[quoted text, click to view]

see following links:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrffusionlogviewerfuslogvwexe.asp
AddThis Social Bookmark Button