Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AspNetCoreModuleV2 deployment issues after installing .NET 9 runtime on server #60541

Open
1 task done
Ben555555 opened this issue Feb 21, 2025 · 2 comments
Open
1 task done
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

Comments

@Ben555555
Copy link

Ben555555 commented Feb 21, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Since we updated to .NET 9 on our webserver the deployment with our azure devops pipeline fails under some circumstances:

  1. Often the main dll cannot be overwritten when the website is deployed with the "IISWebAppDeploymentOnMachineGroup@0" task:

Info: Updating file (Api\Api.dll).
##[error]Failed to deploy web package to IIS website.
##[warning]Can't find loc string for key: Trytodeploywebappagainwithrenamefileoptionselected
##[warning]Trytodeploywebappagainwithrenamefileoptionselected
##[error]Error Code: ERROR_FILE_IN_USE
More Information: Web Deploy cannot modify the file 'Api.dll' on the destination because it is locked by an external process.

  1. When we share the same app pool between two websites, and only one website is deployed with task "IISWebAppManagementOnMachineGroup@0" the other website is taken offline which causes a "503 Service Unavailable" error when trying to access the other website.

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions label Feb 21, 2025
@BrennanConroy
Copy link
Member

@lextm
Copy link
Contributor

lextm commented Feb 21, 2025

Did you enable Shadow Copying (.NET 6+)? More details can be found in posts like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Projects
None yet
Development

No branches or pull requests

3 participants