473,672 Members | 2,428 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to load a C# dll from another C# assembly if the path of the loaded dll is not known until runtime

how to load a C# dll from another C# assembly if the path of the loaded dll
is not known until runtime
Jul 21 '05 #1
1 1305
This should get you started:
http://www.dotnetbips.com/displayarticle.aspx?id=35

In Short: use Reflection to load the assembly and create classes.
--- Nick

"Daniel" <so************ *******@yahoo.c om> wrote in message
news:e4******** ******@TK2MSFTN GP11.phx.gbl...
how to load a C# dll from another C# assembly if the path of the loaded dll is not known until runtime

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3369
by: edge | last post by:
Is there any way to Assembly.Load() dynamically the DLLs of my project, with their strong names, but without the need to specify a version? I just want the public/private key to exist as a measure of safety for their authenticity. I don't want to narrow down the valid DLLs to only those that share the same version. Because if later i decide to upgrade a DLL, I'll have to recompile and send to the customer the WHOLE project, and not just...
2
1441
by: Stampede | last post by:
Hi guys 'n' girls, I would like to know if there is an easy way to load a class out of dll at runtime and create an instance of it. The class which should be loaded has a base class which is known to the "loader" and all classes which should be loaded implement a default constructor. Is there any simple way? I read something about the System.Activator, but I didn't really understand it and don't even know if it is the correct class to...
1
2424
by: John | last post by:
Hi, I tried to load a mixedmode dll (MC++) with AppDomain.Load(Byte ) in a C# Client. During the Load Process I got the following Exception: System.IO.FileLoadException: Ausnahme von HRESULT: 0x80131019. at System.Reflection.Assembly.nLoadImage(Byte rawAssembly, Byte rawSymbolStore, Evidence evidence, StackCrawlMark& stackMark) at System.AppDomain.Load(Byte rawAssembly) ...
2
2067
by: John Alesse | last post by:
Hi, I've created a very simple winforms control using the c# wizard in VS .net 2003 that is nothing but a System.Windows.Forms.UserControl. There are no other controls on the form It takes IE 12 seconds to load this control into the page. CPU usage is at only 1% to 2% during the 12 sec All of this is on a single machine XP Pro sp1 (all critical updates loaded) 2.6GHz, P4, 512MB ra IE v6.0.2800.1106.xpsp2.030422-1633 IIS 5.1 ..net...
0
1444
by: mathlec | last post by:
I have 2 WebApplication project (dummy and dummy2). The first is trying to load a UserControl compiled in the second. I've set up the application as follow: \_(Virtual directory) .:Modules:.
1
199
by: Daniel | last post by:
how to load a C# dll from another C# assembly if the path of the loaded dll is not known until runtime
6
44482
by: Steve | last post by:
I'm playing with late binding and trying a very simple test to load an assembly In my "Host" application I have this code: <code> string modulePath = @"C:\PMDRepository\Tools\ManfBusProcMgr\Modules\TestModule\bin\Debug\TestModule"; Assembly a = Assembly.Load(modulePath); </code>
4
8243
by: Brian Richards | last post by:
Is it possible to run code in an assembly when it's loaded? In my case I have an assembly that requires that the users path be setup correctly or GetTypes() will throw an exception. Looking for a work around to just requiring the user to have the Path environment setup in the calling application. class MyAssemblyLoader { public Type GetTypes(String assemblyName) {
9
6348
by: =?Utf-8?B?VGhvbWFzIFcuIEJyb3du?= | last post by:
"parez" wrote: Assembly.LoadWithPartialName does indeed work!! Now, why is this incredibly useful routine deprecated and we are instructed to use Assembly.Load instead which does not provide the same functionality?!? I'll check now, but maybe someone knows... Is this deprecated routine still available in Visual Studio 2008 and .NET 3.5?
0
8932
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8831
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8611
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7449
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5708
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4420
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2821
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2064
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1819
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.