Posts

Showing posts from June, 2017

VSTS error - PackageDeploymentFailed - using WebDeploy

Image
Issue:
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 …