473,372 Members | 1,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

how to load assembly dinamically

I want to load an assembly dinamically into another application with a
button click.

how to load and execute that dinamic assebly..

i tried like this
copied that target assebly in bin folder and like........
AppDomain newdomain = AppDomain.CreateDomain("RMS");

newdomain.ExecuteAssembly("dllsample.dll");

but it is creating new appdomain ,i dont want to create new domain and in
same appdomain i need to load..
thank u

thank u
Sep 25 '06 #1
2 1937
chandu escribió:
I want to load an assembly dinamically into another application with a
button click.

how to load and execute that dinamic assebly..

i tried like this
copied that target assebly in bin folder and like........
AppDomain newdomain = AppDomain.CreateDomain("RMS");

newdomain.ExecuteAssembly("dllsample.dll");

but it is creating new appdomain ,i dont want to create new domain and in
same appdomain i need to load..
Look at the static method LoadFrom() in the Assembly class.

Regards,

Andrés [ knocte ]

--
Sep 25 '06 #2
Not sure what your end goal for this is but it might be better to load your
assemblies to another app domain.
The app domain is in the same process space (although does require
marshalling for cross app domain boundary calls.
It is also the only way you would be able to unload the dll when your
finished with it as you cant remove an assembly from an app domain but you
could unload the whole app domain. Just incase you wanted to unload it to
conserve resources.

HTH

Ciaran O'Donnell

"chandu" wrote:
I want to load an assembly dinamically into another application with a
button click.

how to load and execute that dinamic assebly..

i tried like this
copied that target assebly in bin folder and like........
AppDomain newdomain = AppDomain.CreateDomain("RMS");

newdomain.ExecuteAssembly("dllsample.dll");

but it is creating new appdomain ,i dont want to create new domain and in
same appdomain i need to load..
thank u

thank u
Sep 25 '06 #3

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

Similar topics

1
by: Greg Patrick | last post by:
My problem: I load an some assemblies (strong named) from a byte array using Assembly.Load(byte). They load fine. But one one of them is actually accessed, it's referenced assemblies can't be...
1
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...
2
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...
6
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 =...
2
by: chandu | last post by:
Hello, I developed one windows appliction . and i want to load that application dinamiclly in a Parent MDI as child appliction when click on a button in parent form.. Just i tried to load the...
0
by: Chepre | last post by:
Hi, I've the following problem. I load an assembly dinamically through code, but I can't call the method GetCredentials correctly, it's allways null. Assembly assem =...
3
by: Peter | last post by:
Hi I can create types from dynamic loaaded assemblies (Assembly.Load) with Assembly.GetTyp( <typename) - OK I need a reference to the assembly (just Type.GetType() do not work ) now my...
3
by: Kojikabutosv | last post by:
Hi everybody, i have a master page and with tree buttons, how configure the buttons to load pages dinamically in wichone pages. Regards,
2
by: David Thielen | last post by:
So we have moved our app from .NET version 2.X in IIS6 to a Windows 2008 Server running IIS7. We have copied all files to the Windwardreports\apps directory and that apps directory has been...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.