I've got a windows service that relies on a DLL. Whether the service is running or not, its executable is keeping a handle to that DLL, which is preventing me from updating it automatically.
Why is this, and how can I remove that handle programatically (preferably via .Net)?
Update: I know that the service's executable is the one with the handle because I ran handle.exe on the dll and only the service's exe came up. Nothing cane up when I ran it on the exe and I know that the service isn't running because I checked the services list. There is nothing else that would be using the dll that I can think of.