Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Wed, 19 Dec 2007 11:48:47 +0100,    group: microsoft.public.dotnet.distributed_apps        back       


LoadException and Load assembly   
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
date: Wed, 19 Dec 2007 11:48:47 +0100   author:   Cédric Tallichet

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us