Deployment of Kentico Instance (Kentico 11 web application) fails with an ERROR_FILE_IN_USE for "Images.zip" (/App_Themes/Default/Images/Images.zip) when using automatic deployment (ms deploy through TFS).
We have set the deploy task to put and remove an app_offline.htm, even shutting down the application pool manually prior to the deploy task does not help.
What does help is shutting down the site via app_offline.htm and waiting a couple of minutes.
We are getting the error only on 1 of 2 servers in production environment (2 server webfarm), local development and staging environment are fine. This seems strange to me, since I have associated the "Images.zip" with the admin ui and all our users (editors) access only the staging environment.
Has anyone encountered a similar problem with automatic deployment?
We are having some issues too with the Images.zip being lock (not the same architecture though)
The only thing that seems working is to restart all the applications servers and re deploy. Not ideal though.
We use a ps script to release the handle on the file in question as a workaround. I still think kentico developers should look into it
Yes, this happens to us. I usually login and stop the app pool before triggering the automated build. Very automated lol. Any solution for this would be great.
Please, sign in to be able to submit a new answer.