Skip to content

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

Open
@Ben555555

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Needs: Attention 👋This issue needs the attention of a contributor, typically because the OP has provided an update.area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions