Skip to content

Web Deploy cannot modify the file on the destination because it is locked by an external process #53897

Open
@Bluebell-CyrusYung

Description

@Bluebell-CyrusYung

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Cannot deploy .NET 8 applications to IIS with Web Deploy.
The error message was the project .dll was locked so it could not be updated.
I downgraded the project to .NET 6 or .NET 7, both of them didn't have the issue and could be updated successfully.

Expected Behavior

No response

Steps To Reproduce

  1. Create a new project with .NET 8
  2. Publish it to IIS with Web Deploy
  3. Project is deployed successfully for the first time
  4. Open a browser and go to the website
  5. Modify something in the project
  6. Publish the project to IIS with Web Deploy one more time
  7. The project .dll is locked and cannot be updated, deployment failed

Exceptions (if any)

No response

.NET Version

8

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsfeature-iisIncludes: IIS, ANCM

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions