Web Deploy cannot modify the file
Hi,
We recently switched some new projects to .NET 5. With this we have run into locked files issues when deploying.
I have added recently app_offline: true
and also added sync_retry_attempts: 20
sync_retry_interval: 3000
however deploy still fails.
Do you have any recommendations on how to continue?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 24 Nov, 2021 03:02 PM
Are you deploying to your own server or Azure App Service?
Support Staff 2 Posted by Feodor Fitsner on 24 Nov, 2021 04:12 PM
Some recommendations for Web Deploy:
1) Try setting "Do not user checksum for comparing files" flag to see if that helps.
2) If you deploy to Azure App Service environment that you can try using slots. They will have different publishing profiles (URLs, credentials, etc.), so you can publish to staging then swap it with production and so on. AppVeyor doesn't provide built-in support for slots, but you can use
az
CLI to to that.Feodor Fitsner closed this discussion on 24 Jan, 2022 09:02 PM.