Reputation:
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 ;-)
Upvotes: 4
Views: 491
Reputation: 351688
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.
Upvotes: 6