Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / February 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nicola Cisternino - 07 Feb 2006 09:19 GMT
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.
Nicola Cisternino - 07 Feb 2006 09:39 GMT
Sorry,
double post ! ....

> Hi all,
> I've developed a custom control that uses a public interface and can be
[quoted text clipped - 15 lines]
> Thanks.
> Nicola.
Petar Repac - 09 Feb 2006 20:36 GMT
> Sorry,
> double post ! ....
[quoted text clipped - 18 lines]
>> Thanks.
>> Nicola.

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.

Petar
Petar Repac - 09 Feb 2006 20:45 GMT
>> Sorry,
>> double post ! ....
[quoted text clipped - 29 lines]
>
> Petar

see following links:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cp
grffusionlogviewerfuslogvwexe.asp

http://blogs.msdn.com/suzcook/archive/2003/05/29/57120.aspx

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.