TFS 2012 Continuous Integration Fails - Directory Is Not Empty

Sporadically get an error

An error occurred while processing the operation "Delete Directory";

'D: \ xxx. The error code was 0x80070091. The catalog is not empty.

I use WMSVC web deployment and the user has full access to the root of the site (configured through IIS> Configure Web Deploy Publishing

EDIT
Or less often:

C: \ Program Files (x86) \ MSBuild \ Microsoft \ VisualStudio \ v11.0 \ Web \ Microsoft.Web.Publishing.targets (4377): The network deployment task could not be completed. (It is not possible to perform the operation ("Delete file") for the specified directory ("D: \ xxx \ bin \ Microsoft.Practices.ServiceLocation.dll"). This can happen if the server administrator did not allow this operation for the user you are using. Find out more: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_INSUFFICIENT_ACCESS_TO_SITE_FOLDER .)

I follow the instructions for the user (domain user), but that does not make any difference. Publish options that are saved have publishMethod = "MSDeploy" instead of WMSVC.

Note that it deploys correctly 95% of the time.

+6
source share
1 answer

I know this sounds silly, but do you have these folders (or their children) on any computer? Especially if you had a dead Remote Desktop session or someone accessing it through a network share, it will be denied the ability to delete the directory.

Burned me several times, you can be different, though. I understand that this is a late answer, but I found it while searching for my own problem and although I helped to help me.

+2
source

Source: https://habr.com/ru/post/952645/


All Articles