What happens if a dll is already loaded by w3wp.exe
and we replace it?
Of course we can replace a dll since asp.net uses a cached version of Bin
folder DLLs, but I want to know if upon replacing a dll it will load the new one or it wait until next recycling or when there's no new request.
EDIT: DLL contains a singleton class
Your application will be compiled again once a dll is modified or added.
Your application's domain will be recycled when any change occurs in the bin directory or if its contents are modified.
From MSDN:
If you change the .dll and write a new version of it to the
Bin
folder, ASP.NET detects the update and uses the new version of the .dll for new page requests from then on.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With