473,480 Members | 1,913 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Load modified dll at runtime

1 New Member
I have developed a c sharp addin on outlook which calls a dll That I have put on a network drive mapped on all machines. the addin will be installed on 1000 machines.

When I get a bug in my application, I go to change the code in the dll and I compile it again and spread it on the mapped network drive. But how to make the client load the new version of the dll at runtime. I need to make all the changes done to the url transparent.

Do you have an idea how can i do this?

Thanks in advance
Sep 17 '10 #1
1 2399
ZiadElmalki
43 New Member
Once a dll is loaded in an appdomain it cannot be unloaded. You can do something like asp.net does create multiple appdomains and do shadow copying. A appdomain will get a dll from some location and copy it to a temp folder, if the dll changes the appdomain gets recycled and the dll gets copied over again. The application needs to talk to the other appdomain using remoting.

http://msdn.microsoft.com/en-us/library/ms404279.aspx

It is kind complicated and I would not really recommend. Maybe you can do some kind of click once or something. Email your users and tell them to restart the app to get the latest changes.
Sep 22 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
2232
by: A Future Computer Scientist | last post by:
I've gone through the newsgroups and I don't think I found the answer to my question. My question does anyone know the coding to show a form at runtime if it's not the first form created, since...
9
21624
by: John Kirksey | last post by:
I have a page that uses an in-place editable DataGrid that supports sorting and paging. EnableViewState is turned ON. At the top of the page are several search fields that allow the user to filter...
11
1788
by: Juande | last post by:
Hello, My application needs load some dll's at runtime, Is there any way to do it?, can you show me a working example code? Many thanks
6
44467
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 =...
6
2254
by: mookid8000 | last post by:
Hi group! Is it possible to scan an assembly *which has NOT been added as a reference* for types, and dynamically create instances of the loaded types? I have a program, MyProgram.exe, which...
28
2028
by: larpup | last post by:
I have computers setup with A97 runtime with mde's. Work perfectly. I've written an app in 2003 and purchased the Developer extensions. When I load A2003 runtime with my app on a computer that...
1
1039
by: Gabriel | last post by:
Hello, I create a user control, no problem at design time. But when I try to load at runtime, no error but I don't see it. The code is : protected void Page_Load(object sender, EventArgs...
4
5790
by: ThunderMusic | last post by:
Hi, I have a custom form that works fine when I debug it or run it in release mode but cannot be loaded in the designer... Actually, it can be loaded in the designer when no control is on it, but...
1
1336
by: hamzeh83 | last post by:
hi all, i want load image runtime on crystal report (Windos form) Thanxx
0
1358
by: maamirk | last post by:
Hi , I have a c# dll. My client (consumer of dll) is VBA (Ms Access). I need to load dll runtime (dll is not registered). I cannot register dll in registry, its a requirement. I am loading dll...
0
7059
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
6921
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
7063
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,...
0
7040
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5371
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,...
1
4803
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...
0
4506
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...
0
3018
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
575
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.