'Error:C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe failed with return code: 4294967295
I have setup the VSTS release definition with Dev and Test environments, those environments successfully deployed without any issue from last 2 months but suddenly today I faced some issue in Test environment even Dev environment succeeded.
The issue like “Error:C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe failed with return code: 4294967295”, if you want more information see the below screenshot.
Before posting question I read so many answers and tried with some options like adding -retryInterval: 6000 -retryAttempts:10 and tick the Take app offline option under Additional Deployment Options of VSTS release steps. But those are not helpful for resolving my issue.
So, can anyone tell me how to resolve this issue as soon as possible?
Solution 1:[1]
Since setting system.debug release definition variable (in variables tab) to true didn't give more information, I finally deleted and recreated the staging slot to be able to deploy again. Of course I checked that the slot app and all its web jobs were stopped.
You're lucky if you deploy to a slot.
Solution 2:[2]
This issue was related to permissions. The IIS deployment needs permissions to override files and do file transform if you have a web.config file.
I had an Azure Pipeline running on a server and I've added the "NETWORK SERVICE" account to the security with full control.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | barbara.post |
Solution 2 | amrswalha |