I'm aiming for a zero-downtime deployment of our ASP.NET 4.0 web application and the Internets say that the kosher way of doing this is as follows:
- Copy new files over to
c:\inetpub\my-site-new-version
- Change application physical directory from
c:\inetpub\my-site-old-version
toc:\inetpub\my-site-new-version
Now, it all sounds fine and dandy, but nowhere I could find any information on what happens to requests in-flight while IIS changes its settings. In other words, what are the consequences of changing physical directory of an application that is currently serving requests?