HighTechTalks DotNet Forums  

LoadException and Load assembly

Dotnet Distributed Applications microsoft.public.dotnet.distributed_apps


Discuss LoadException and Load assembly in the Dotnet Distributed Applications forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Cédric Tallichet
 
Posts: n/a

Default LoadException and Load assembly - 12-19-2007 , 05:48 AM






Hello,

I try to create an app able to retrieve Types from .net Assemblies.
First case (this one works fine):
My application has "A.dll" referenced at compile time. I add "B.dll" at
runtime. I can inspect "B.dll" to get all of its Types. I load it using
Assembly.Load nor AppDomain.CurrentDomain.LoadFrom(...).

Using the same method, I'm adding "C.dll" assembly wich refer to "B.dll"
(some types in C inherits from some B classes).

I got an exception (System.IO.FileNotFoundException) saying "Unable to laod
file or assmebly 'B, Version=0.1.0.0, Culture=neutral, PublicKeyToken=[***]'
or one of its dependencies. File not found." (I translated it from the
French version I got).
This exception is raised on the Assembly.GetTypes() method.


Does some one could help me?

Kind Regards
Cedric



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.