AzureDevops (VSTS) error - PackageDeploymentFailed - using WebDeploy
Issue:
AzureDevops (VSTS) reports the following error when trying to use WebDeploy on a release.
2017-06-12T15:00:29.1546658Z [command]C:\vstsagent\A5\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b46XXXX-6725-4b6d-accd-886174c09bba\0.0.18\MSDeploy3.6\msdeploy.exe -verb:sync -source:package='C:\vstsagent\A5\_work\r1\a\XXXWebsite Redesign-ASP.NET (PREVIEW)-CI\drop\Web.zip' -dest:auto -setParam:name='IIS Web Application Name',value='dev/dev' -enableRule:DoNotDeleteRule
2017-06-12T15:00:29.2151195Z ##[warning]Can\'t find loc string for key: PackageDeploymentFailed
2017-06-12T15:00:29.2151195Z ##[error]PackageDeploymentFailed
2017-06-12T15:00:29.2151195Z ##[error]Error: C:\vstsagent\A5\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.0.18\MSDeploy3.6\msdeploy.exe failed with return code: 2148734720
2017-06-12T15:00:29.2284444Z ##[section]Finishing: IIS Web App Deploy (Preview)
Solution:
When running the command specified in the logs directly on the build agent, you can interactively see that .NET 3.5 is prompted to be installed.
Using the Powershell command "Add-WindowsFeature net-framework-core" will allow the webdeploy release to proceed successfully.
AzureDevops (VSTS) reports the following error when trying to use WebDeploy on a release.
2017-06-12T15:00:29.1546658Z [command]C:\vstsagent\A5\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b46XXXX-6725-4b6d-accd-886174c09bba\0.0.18\MSDeploy3.6\msdeploy.exe -verb:sync -source:package='C:\vstsagent\A5\_work\r1\a\XXXWebsite Redesign-ASP.NET (PREVIEW)-CI\drop\Web.zip' -dest:auto -setParam:name='IIS Web Application Name',value='dev/dev' -enableRule:DoNotDeleteRule
2017-06-12T15:00:29.2151195Z ##[warning]Can\'t find loc string for key: PackageDeploymentFailed
2017-06-12T15:00:29.2151195Z ##[error]PackageDeploymentFailed
2017-06-12T15:00:29.2151195Z ##[error]Error: C:\vstsagent\A5\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.0.18\MSDeploy3.6\msdeploy.exe failed with return code: 2148734720
2017-06-12T15:00:29.2284444Z ##[section]Finishing: IIS Web App Deploy (Preview)
Solution:
When running the command specified in the logs directly on the build agent, you can interactively see that .NET 3.5 is prompted to be installed.
Using the Powershell command "Add-WindowsFeature net-framework-core" will allow the webdeploy release to proceed successfully.
Comments
Post a Comment