Does anyone have a script that can recycle an appDomain? I'm tired of running iisreset just to kick one misbehaving website.
Eric Falsken wrote:Does anyone have a script that can recycle an appDomain? I'm tired of running iisreset just to kick one misbehaving website.
Are you getting application pool and app domain confused here?
You could bounce an app domain simply by "touching" the web.config for that application, but you mention iisreset which leads me to believe you mean application pool. You can configure those to recycle on a periodic basis, and of course create a new pool to isolate your bad app.
Furthermore you can unload applications using ADSUTIL in your c:\inetpub\adminscripts directory;
adsutil.vbs APPUNLOAD w3svc/1/root
If you want a command line to recycle a pool you can grab the utilities from the TechNet article Inside Microsoft.com. It just automates the WMI calls you need to make.