Web Deploy cannot modify the file on the destination because it is locked by an external process
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 281
Description
### Is there an existing issue for this?
- [X] 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_
Contributor guide
Assessment
This issue has not been assessed yet.