What is the safest way to make sure IIS picks up changes to a recompiled DLL? 1. Just copy the DLL in the /bin folder? 2. Clear the application cache? 3. Restart IIS? 4. Reboot the server? Note: I'm pretty sure options 3 & 4 would work, but they might be a tad drastic in a production environment ;-)
+6
A:
Copying the DLL into the \bin ought to recycle the worker process. If that doesn't work then the best thing to do is to recycle the AppPool. When you recycle your AppPool this will unload your website's AppDomain. When a new AppDomain is created it will load the new version of your assembly.
Andrew Hare
2009-04-21 16:59:06
Are you sure or is it just a guess?
Jhonny D. Cano -Leftware-
2009-04-21 17:00:50
This will just trigger what "Andrew Hare" wrote about.
Patrik
2009-04-21 17:03:33
I'm sure, the question mark just means it's not a cleanest solution. But it is a good solution if you want to restart your Web app. even without changing any DLLs.
Igor Brejc
2009-04-21 17:08:55