

Can this file be deleted immediately after the file was created ? or should we wait for IIS to detect it? If it's required to wait for a little I would prefer to have a file like "apprestart" that IIS will listen, then delete once it detects it and start recycling.Īlso, I have another question in mind. To do so we'll have to create the file appoffline, then delete it.

If I understand well (tell me if I'm wrong), what you planning is to remove the lock, but we'll still have to create appoffline to signal IIS to recycle the app after the build is complete? Adding the appoffline file is a way to signal that you want the application to restart as a result of the why is that?

I'm assuming the majority of complains are around those scenarios. Right, in-place deployments were never reliable or atomic, if you got lucky or didn't have much traffic it would be fine though. New-Item -Type SymbolicLink -Path $siteRoot -Target $newTarget -Force $current = (Get-Item -Path $siteRoot).Target Get-Item -Path $siteRoot | Select-Object -ExpandProperty target Set-ItemProperty "IIS:\Sites\$siteName" -name physicalPath -value $siteRoot New-Item -Type SymbolicLink -Path $siteRoot -Target $a $siteRoot = 'C:\inetpub\aspnetcoresample' It's quicker as you don't have to stop the app pool during the copy + recycle is better than a hard stop as it lets the current requests complete, so less downtime. I was thinking of doing something like this.
#Ancm failed to start within startup time limit Offline
If you can't take your host offline behind the loadbalancer and would want to do it quicker, here is one way with symlinks and some powershell. I recommend PS scripting, for example, to take the AppPool down, or some other strategy. That's never been an option under the official guidance, and so it's completely unsupported. Maybe one could remove all of the non-essential modules, but we're getting into uncharted waters with a move like that just to cover a deployment via removal of web.config. since other modules would remain and possibly present other attack vectors. I wouldn't trust merely removing module with.
