I have a multi-tiered web application written in VB. I'm attempting to
redeploy one of my dlls but dllhost is hanging on to it. I've stopped
iisadmin, w3svc, stmp, ftp, msdtc...but dllhost continues to keep
running. Is there a graceful way of stopping it? I'm working on
procedures so this can get moved into a production environment and
dont really want my operators just killing processes. Any thoughts?

Thanks.

Re: How do you stop dllhost.exe by David

David
Fri Jul 25 13:56:11 CDT 2008

On Jul 25, 6:44=A0am, Scooter <slbent...@gmail.com> wrote:
> I have a multi-tiered web application written in VB. I'm attempting to
> redeploy one of my dlls but dllhost is hanging on to it. I've stopped
> iisadmin, w3svc, stmp, ftp, msdtc...but dllhost continues to keep
> running. Is there a graceful way of stopping it? I'm working on
> procedures so this can get moved into a production environment and
> dont really want my operators just killing processes. Any thoughts?
>
> Thanks.



Take the server out of rotation because you cannot hot-patch any file
and drain all requests to it. Then feel free to:

NET STOP COMSYSAPP
kill any remaining dllhost.exe which stubbornly remains
NET START COMSYSAPP

You may want to restart any of your services (W3SVC) that have user
applications using user code in dllhost.exe.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

Re: How do you stop dllhost.exe by Scooter

Scooter
Mon Jul 28 10:51:08 CDT 2008

Yeah just stopping COMSYSAPP didn't work. Here's what I'm doing next.
Seems to work although seems a litle extreme:

for /F "tokens=2" %i in ('tasklist /M [name of my dll] /FO TABLE /NH')
do taskkill /F /PID %i

It will only kill the dllhosts.exe that are using my dll. So far I
haven't seem any instability from doing this. The next time the dll is
needed seems a new dllhost.exe is fired up.