I am getting an error trying to publish to an Azure Linux App Service the second time I publish.
The first time after the service is created it works, subsequent updates fail with:
Unable to add XXXX.dll to the Web site. The process cannot access the file because it is being used by another process (550).
If I turn on Delete Existing files, the publish fails with:
Error deleting file runtimes. Cannot remove folder runtimes/unix/lib/netcoreapp2.1
I have even gone so far as to delete the App Service and recreate it from scratch and get the exact same errors after the initial publish. I have also tried to FTP via FTP Client to the site and manually delete the runtimes/unix/lib/netcoreapp2.1 folder and get an error manually deleting it as well.
I am publishing a netcoreapp3.1, framework independant portable runtime with a release configuration via FTP using the publishing profile downloaded from the Azure Portal.
It seems like a problem in Azure with permissions or files not being properly released or something.
Any suggestions on what the problem is or how to resolve it?