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

How release file loaded with Assembly.LoadFrom() ?

I have loaded a file from disk with the Assembly.LoadFrom() method.
What do I have to do so the file can be released and the file deleted ?

Regards

Tomas Palmquist
Pointsec Mobile Technologies
Nov 15 '05 #1
1 6406
Tomas,
What do I have to do so the file can be released and the file deleted ?


Unload the AppDomain it's loaded into.

But you can avoid the file lock by enabling shadow copying. Or you may
be able to load the file into a byte array and use
Assembly.Load(byte[]) instead.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 15 '05 #2

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

Similar topics

3
by: surya | last post by:
Hi, I use the Assembly.LoadFrom call in my code to load assemblies dynamically. This call currently loads both signed and unsigned assemblies. It now needs to be changed to load only signed...
0
by: Tomas Palmquist | last post by:
I have loaded a file from disk with the Assembly.LoadFrom() method. What do I have to do so the file can be released and the file deleted ? Regards Tomas Palmquist Pointsec Mobile Technologies
2
by: Henrik de Jong | last post by:
I'm using a sort of plugin mechanism in combination with a commandfactory (pluginfactory). This factory looks in a special dir when it's starting. Each assembly(*.dll) will be loaded with...
0
by: Oenone | last post by:
I have created a number of "plug-in" DLLs for my ASP.NET application which are dynamically loaded at run-time. This is done by locating the DLL file on disk and loading it using the...
2
by: Dominique Vandensteen | last post by:
I want to make a program that checks for updates at start... The way I am doing this is to create 2 projects... A simple exe checks the server for the version and downloads a dll if needed. The...
1
by: lgbjr | last post by:
Hi All, I am moving some of my MDI Child forms to DLLs. The first 3 forms worked fine. But the 4th one is causing me some grief! I use the following code to load a form from a DLL: Dim...
2
by: Oenone | last post by:
I've an ASP.NET 2.0 project into which various Plug-In DLLs can be installed. I'm running it in the ASP.NET Development Server. In order to load one of the PlugIn DLLs I'm using...
2
by: stokiemike | last post by:
I need to unload my loaded assembly. I have used LoadFrom to give me the flexability of loading the dll from any location. However, to totally remove the assembly I need to unload the AppDomain,...
0
by: Alun Harford | last post by:
I use Assembly.LoadFrom to dynamically load a dll from a subdirectory of my program's working directory. I then use reflection to instantiate an object that implements an interface. I then call a...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.