thanks for ur reply,
but how do i stop the application during runtime??
if i stop it during runtime then i wont be able to update my application and the dll.
Main Topics
Browse All TopicsHi Folks,
this is my first post on EE.
i am creating this winform application which will be auto updating itself.
i have a problem replacing the existing dll.
supposingly if i have a single dll file that needs to be updated , how do i update it while the application is still running, i tried copying my Dll into the debug folder but it gives an error that the application is in use..
can u plz suggest a solution or a workaround ..
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Another way is to launch another program that executes the update.
Call the updating program (that will start the process after some second set by a timer or, better, that waits the end of the calling program), then close the main program. Clearly, the updating program should not use the dll...
Hope this helps
I assume this is for an update application. The best thing to do is to create a separate application to check for updates and patch the program. The attached code snippet is a sample of how an update program can work. It accesses a web page to see if there is a new version, and if so it then checks another page to find where it can get the update files.
Business Accounts
Answer for Membership
by: emoreauPosted on 2009-09-15 at 06:31:09ID: 25334648
You have to stop the application in order to unload the DLL and be able to replace it.