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 / Distributed Applications / October 2005

Tip: Looking for answers? Try searching our database.

Downloading assembly from a remote host

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Evan Woo - 27 Oct 2005 05:37 GMT
Hi there,
I know an application can specify in its config file an assembly (DLL) that
it depends on and where to get it from, e.g (person.dll deployed on a local
webserver):

<dependentAssembly>
       <assemblyIdentity name="person"
                         publicKeyToken="30740f778431d362"
                         culture=""/>
       <codeBase version="1.0.0.0"
                 href="http://localhost/tms/person.dll"/>
</dependentAssembly>

Is it possible to achieve the same thing programmatically (in C#), instead
off from a config file? If so, can you show me what .net classes to use?

Also, is it possible to get a remote dll via a different protocol, like tcp
(similar to remoting)?

Thanks for your help.

Evan
Manoj G [MVP] - 30 Oct 2005 09:22 GMT
The dependentAssembly element is a part of the assembly binding
configuration that is used by the runtime when loading assemblies. I dont
think this can be changed programmatically (at least in managed code. Not
sure if a custom CLR host can change this). However, if you are just looking
at loading assemblies, using C# code, from a particular location, say a URL,
you can use the Assembly.LoadFrom() function.

Signature

HTH,
Manoj G
MVP, Visual Developer
http://msmvps.com/manoj

> Hi there,
> I know an application can specify in its config file an assembly (DLL)
[quoted text clipped - 21 lines]
>
> Evan

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.