473,386 Members | 1,720 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,386 software developers and data experts.

Load modified dll at runtime

1
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 2397
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
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
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
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
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
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
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
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
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
by: hamzeh83 | last post by:
hi all, i want load image runtime on crystal report (Windos form) Thanxx
0
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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...
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
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...

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.