Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure website publish fails file in use

I have a web application that I'm publishing to an Azure website. Sometimes it will publish with no issues. However, more often than not it will fail on a particular binary file (one of the business logic dlls) stating that the file is in use. After a quick google; it seems this means the file is in use on the server side. Which is odd as there are certainly no requests occurring against this web app at the time.

Is there some configuration option I need to set somewhere to force unloading of dlls? I've published Azure websites before and never seen this.

like image 560
Ben Ford Avatar asked Oct 19 '25 05:10

Ben Ford


1 Answers

We had a similar situation once. It was resolved using following steps.

  • Stop the site from the portal

  • FTP into site using client such as FileZilla. You can get the FTP url & credentials from publish profile by looking for publishMethod="FTP" section.

  • Navigate to site/wwwroot folder

  • Delete the locked file(s)

  • Start the website

  • Redeploy the site immediately from deployments tab in portal.

like image 115
Kedar Vaidya Avatar answered Oct 21 '25 21:10

Kedar Vaidya



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!