none
How to delete the dll in bin folder?

    Question

  • I have a dll inside the bin folder, but I  can not delete it because it is hold by another process ,I remember that there is a tool to find which process hold this dll and can delete this dll.

    I hope that one expert can give me the link of this tool?

    Thanks.
    Wednesday, August 20, 2008 3:06 PM

Answers

  • "... In such cases I always turn to tasklist.exe, the command line version of the Windows Task Manager (Ctrl+Shift+Esc).  It's not well known but it can be incredibly handy, especially the module switch.  Just type: tasklist /m thelocked.dll and it will return all processes that have loaded that DLL!"

    http://blogs.msdn.com/winclient/archive/2004/07/08/177947.aspx
    Shannon Bray - MCT, MCPD, MCTS, MCITP
    Wednesday, August 20, 2008 5:04 PM
  • Is this a sharepoint question? 

    If so, in addition to Shannon's response, you might try an iisreset and then immediately try and delete that .dll.
    --Paul Galvin of www.Conchango.com @ http://feeds.feedburner.com/PaulGalvinsSharepointSpace
    Wednesday, August 20, 2008 5:09 PM
  • This definitly sounds like it is not a SharePoint Question which means you may not find an answer here.  Typically I would go with Paul's reponse on doing an IIS Reset and deleting the dll as soon as the cmd window disappears.

    You may want to track down your answer in another forum.  But... you never know, maybe someone here as used the tool you are in search of.


    Shannon Bray - MCT, MCPD, MCTS, MCITP
    Wednesday, August 20, 2008 9:30 PM

All replies

  • "... In such cases I always turn to tasklist.exe, the command line version of the Windows Task Manager (Ctrl+Shift+Esc).  It's not well known but it can be incredibly handy, especially the module switch.  Just type: tasklist /m thelocked.dll and it will return all processes that have loaded that DLL!"

    http://blogs.msdn.com/winclient/archive/2004/07/08/177947.aspx
    Shannon Bray - MCT, MCPD, MCTS, MCITP
    Wednesday, August 20, 2008 5:04 PM
  • Is this a sharepoint question? 

    If so, in addition to Shannon's response, you might try an iisreset and then immediately try and delete that .dll.
    --Paul Galvin of www.Conchango.com @ http://feeds.feedburner.com/PaulGalvinsSharepointSpace
    Wednesday, August 20, 2008 5:09 PM
  • But I see a famous tool before, it can find the process which  hold the dll and kill it, can you give me the name of that famous tool.

    Thanks.
    Wednesday, August 20, 2008 8:52 PM
  • This definitly sounds like it is not a SharePoint Question which means you may not find an answer here.  Typically I would go with Paul's reponse on doing an IIS Reset and deleting the dll as soon as the cmd window disappears.

    You may want to track down your answer in another forum.  But... you never know, maybe someone here as used the tool you are in search of.


    Shannon Bray - MCT, MCPD, MCTS, MCITP
    Wednesday, August 20, 2008 9:30 PM