Web Deploy cannot modify the file

Artur O's Avatar

Artur O

24 Nov, 2021 10:41 AM

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?

  1. Support Staff 1 Posted by Feodor Fitsner on 24 Nov, 2021 03:02 PM

    Feodor Fitsner's Avatar

    Are you deploying to your own server or Azure App Service?

  2. Support Staff 2 Posted by Feodor Fitsner on 24 Nov, 2021 04:12 PM

    Feodor Fitsner's Avatar

    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.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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