title: Is it possible to deploy ASP.NET Core website to Azure without taking it offline?
body: <p>When we try to deploy ASP.NET Core website to Azure we are getting this error:</p>
  
  <blockquote>
    <p>Error Code: ERROR_INSUFFICIENT_ACCESS_TO_SITE_FOLDER
    More Information: Unable to perform the operation ("Delete File")  for the specified directory ("D:\home\site\wwwroot\TestAspNetCore.exe"). This can occur if the server administrator has not authorized this operation for the user credentials you are using.  Learn more at: <a href="http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_INSUFFICIENT_ACCESS_TO_SITE_FOLDER" rel="nofollow">http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_INSUFFICIENT_ACCESS_TO_SITE_FOLDER</a>.</p>
  </blockquote>
  
  <p>The problem is IIS locks the .exe file. We can take the website offline but with continuous delivery it would be nice to have no downtime.</p>
  
  <p>Note that ASP.NET 4.5 does not have this problem.</p>
  
  <p>See also <a href="https://github.com/aspnet/IISIntegration/issues/226" rel="nofollow">https://github.com/aspnet/IISIntegration/issues/226</a> and  <a href="https://github.com/aspnet/Hosting/issues/141" rel="nofollow">https://github.com/aspnet/Hosting/issues/141</a></p>