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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With