title: Plugin DLL locked by w3wp.exe
body: <p>Dynamics CRM 2011 on premise.</p>
  
  <p>I have a registered plugin DLL that is called when the case/incident entity is created.</p>
  
  <p>An exception is raised when this happens. I am investigating this.</p>
  
  <p>The plugin is on disk (C:\Program Files\Microsoft Dynamics CRM\Server\bin\assembly) and I have to update it manually when I want to change the code. (This situation was created before me and I won't change it now.)</p>
  
  <p>Whenever the exception is raised, the DLL becomes locked and the only way I can find to overwrite it is to restart IIS.</p>
  
  <p>How can I unlock the file without restarting IIS?</p>
  
  <p><strong>Responses to answers</strong></p>
  
  <p>Which application pool?
  <img src="https://i.stack.imgur.com/COfVz.png" alt="enter image description here"></p>
  
  <p>None of the pools list the location of the DLL in this list:
  <img src="https://i.stack.imgur.com/zBMBb.png" alt="enter image description here"></p>
  
  <p>The DLL is in C:\Program Files\Microsoft Dynamics CRM\Server\bin\assembly</p>