Error:C:\\Program Files\\IIS\\Microsoft Web Deploy

2019-06-19 18:44发布

问题:

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?

回答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.



回答2:

I fixed this problem by going into the ISS management interface, stopping the running IIS instance, then deleting the msvcr100.dll file from the bin folder in the project's target deployment folder. You can then restart IIS and re-run your release pipeline.

This file was previously locked because IIS had opened it without closing it apparently. For this reason VSTS failed to overwrite it. Stopping IIS removes the lock on the file which then allows you to manually delete it.