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 / .NET Framework / New Users / November 2006

Tip: Looking for answers? Try searching our database.

How to load an external assembly with references?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
W. Jordan - 28 Nov 2006 09:17 GMT
Hello,

I am trying to load an assembly A which references an external assembly B,
by using Assembly.LoadFile method. A was loaded but B was not.
When I try to invoke a method in A, which requires assembly B, it fails.
How can I solve this?

Signature

Best Regards,
W. Jordan

Vadym Stetsyak - 28 Nov 2006 11:38 GMT
Hello, W.!

There are several ways how to resolve.
- you can load assembly B prior to A
- put B's path into binding redirection config.

Have a loot here how runtime locates assemblies
( http://msdn2.microsoft.com/en-us/library/yx7xezcf.aspx )

WJ> I am trying to load an assembly A which references an external
WJ> assembly B,
WJ> by using Assembly.LoadFile method. A was loaded but B was not.
WJ> When I try to invoke a method in A, which requires assembly B, it
WJ> fails.
WJ> How can I solve this?

WJ> --

WJ> Best Regards,
WJ> W. Jordan

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
W. Jordan - 29 Nov 2006 06:11 GMT
Thank you for your reply.

I tried loading B prior to A. However, an object OBJ created with the method
in A was used as an ExtentionObject for an XSLT file. The XSLT file
reported that it could not locate B, when it tried to execute a method
provided by OBJ.

I forgot to say that the B is in another drive, the binding redirection
does not work in such a scenario. And what's more, is it possible
not to modify the configuration file?

Signature

Best Regards,
W. Jordan

> Hello, W.!
>
[quoted text clipped - 20 lines]
> Regards, Vadym Stetsyak
> www: http://vadmyst.blogspot.com

Rate this thread:







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.