473,408 Members | 2,839 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,408 software developers and data experts.

Unloading Assemblies

Hello,

I would like to unload an assembly after I finished my stuff.

I tried to load the assembly in to an AppDomain like this:

AssemblyName asmName = AssemblyName.GetAssemblyName(fullFileName);

Assembly asm = helpAppDomain.Load(asmName);

In this case I get an SerializationException and after some reading I
discovered that the .Load function only works on the
AppDomain.CurrentDomain...

Does anyone know if I can load/unload Assembly Dll's using Appdomain, or is
there another way to explicitely unload an assembly?

Greets,

Arthur
Nov 15 '05 #1
2 1822
100
Hi Arthur,
Once you load an assembly you cannot unload it. You can only unload
application domains only. Unloading appdomain will unload all assemblies
loaded on it.

HTH
B\rgds
100

"Arthur Roodenburg" <@> wrote in message
news:Op**************@TK2MSFTNGP10.phx.gbl...
Hello,

I would like to unload an assembly after I finished my stuff.

I tried to load the assembly in to an AppDomain like this:

AssemblyName asmName = AssemblyName.GetAssemblyName(fullFileName);

Assembly asm = helpAppDomain.Load(asmName);

In this case I get an SerializationException and after some reading I
discovered that the .Load function only works on the
AppDomain.CurrentDomain...

Does anyone know if I can load/unload Assembly Dll's using Appdomain, or is there another way to explicitely unload an assembly?

Greets,

Arthur

Nov 15 '05 #2
I wrote this column a while back.

http://msdn.microsoft.com/library/de...rp05162002.asp

--
Eric Gunnerson

Visit the C# product team at http://www.csharp.net
Eric's blog is at http://blogs.gotdotnet.com/ericgu/

This posting is provided "AS IS" with no warranties, and confers no rights.
"Arthur Roodenburg" <@> wrote in message
news:Op**************@TK2MSFTNGP10.phx.gbl...
Hello,

I would like to unload an assembly after I finished my stuff.

I tried to load the assembly in to an AppDomain like this:

AssemblyName asmName = AssemblyName.GetAssemblyName(fullFileName);

Assembly asm = helpAppDomain.Load(asmName);

In this case I get an SerializationException and after some reading I
discovered that the .Load function only works on the
AppDomain.CurrentDomain...

Does anyone know if I can load/unload Assembly Dll's using Appdomain, or is there another way to explicitely unload an assembly?

Greets,

Arthur

Nov 15 '05 #3

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

Similar topics

1
by: LilleSkutt | last post by:
I want to use assemblies (Window Forms as .dll) so that I can replace the form while the main application is running. To accomplish this, I used Assembly.LoadForm to manually load the assembly when I...
1
by: Afaq | last post by:
Hi, After adding large number of empty resource files (which will be updated later), we are not able to compile the project. the following is the output of the build process. It fails while...
9
by: Rom Marshall | last post by:
Hi. Once a LOB size goes beyond 32KB in size, I'm not able to use the LOAD utility to unload the data off the tables for DB2 7.1 on OS/390. Instead, the documentation refers to a sample C++...
5
by: vineeth | last post by:
Hi I have GUI assembly which is loaded into a seprate Appdomain using AppDomain::Load method, after using it's function i unloaded the assembly by calling the AppDomain.UnLoad() method. But i can...
2
by: Guru Prasad | last post by:
Is there a delay involved in unloading assemblies once a virtual directory is "deleted" using IIS Manager ? At times even after the virtual directory is removed i cannot delete the backing physical...
5
by: Bob | last post by:
I remember reading somewhere that assemblies can be loaded but not unloaded... I can't seem to find where I read it, but I am looking at a problem where I need to load up an assembly from a file...
0
by: Christian Wulff | last post by:
Hi, I have a problem regarding unloading AppDomains in a web service. When I use an AppDomain in a web service and unload it, the referenced assemblies are still locked. When I use the same code...
0
by: ibenc | last post by:
Is there a way to prevent w3wp.exe from unloading a particular appDomain. Some parameters, config files? Here is some info about why I need this. I have a long running background thread in...
0
vdraceil
by: vdraceil | last post by:
Hi,i use VB6.0..is it possible to prevent a form from unloading ever? I know to set cancel=true in query unload event of the form..but this applies only to limited cases. If my exe is closed from...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.