I don't think you can - .NET does a shadow copy before it is run.
Is there any reason you want to lock the DLL?
You do you realize if you update the DLLs while the application is running,
it won't cause existing sessions to crash. New requests will use the new
code. But, existing sessions will continue to run using the old code until
they time out - at which point the old code is unloaded and deleted.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.