Remove all references to a DLL across all application domains

Posted by ck on Stack Overflow See other posts from Stack Overflow or by ck
Published on 2010-03-24T11:18:19Z Indexed on 2010/03/24 11:23 UTC
Read the original article Hit count: 265

Filed under:
|
|

I have a web application that dynamically loads assemblies based on database configuration entries to perform certain actions (dynamic plugin style architecture).

The calls to the objects are in a Factory Pattern implementation, and the object is cached (in a static dictionary<> within the Factory) as the calls can be made many thousands of times in a minute.

The calls to this factory are made from both the main web application and a number of webservices, some in different assemblies/projects.

When I need to update one of these DLLs, I have to recycle IIS to get the DLL released.

As this has an impact on another application on the server, I wanted to know if there was a way I could release the DLL without restarting IIS?

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET