IIS: changing site's home directory while site is running

Posted by Jeff Stewart on Server Fault See other posts from Server Fault or by Jeff Stewart
Published on 2010-04-26T15:27:56Z Indexed on 2010/04/26 15:34 UTC
Read the original article Hit count: 365

Filed under:
|
|

I'm trying to understand exactly what IIS 6.0 (on Windows Server 2003) does when I change the "Local Path" of a web site's Home Directory while the site is running. (Specifically with regard to ASP.NET applications.)

I'm trying to build support for or against this practice in a deployment scenario: e.g. deploy the new code alongside the old code, then simply switch the IIS web site's local path to the folder containing the new code.

IIS seems to handle this gracefully, but I notice that w3wp.exe still keeps some handles on the old code folder after the change. That's strange to me, because I would have expected IIS to recycle the application pool if this happened.

Is this safe? Is the behavior well-defined?

© Server Fault or respective owner

Related posts about iis6

Related posts about w3wp