Monday, June 12, 2017

VSTS error - PackageDeploymentFailed - using WebDeploy

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\' -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)

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.

No comments:

Post a Comment

Azure Point to Site VPN failure with error code 809

I ran into some trouble today troubleshooting a developer's workstation. The issue was when using a Point to Site IKEV2 VPN some clients...