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.

  3. Feodor Fitsner closed this discussion on 24 Jan, 2022 09:02 PM.

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

 

01 Oct, 2024 04:27 PM
26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM