Sporadically get the error
An error was encountered when processing operation 'Delete Directory' on
'D:\xxx'. The error code was 0x80070091. The directory is not empty.
I'm using web deploy WMSVC and the user has full access to the root of the site (set up through IIS > Configure Web Deploy Publishing
EDIT
Or less frequently:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets (4377): Web deployment task failed. (Unable to perform the operation ("Delete File") for the specified directory ("D:\xxx\bin\Microsoft.Practices.ServiceLocation.dll"). This can occur if the server administrator has not authorized this operation for the user credentials you are using. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_INSUFFICIENT_ACCESS_TO_SITE_FOLDER.)
I follow the instructions for the user (a domain user) but it makes no difference. The publish settings that get saved have publishMethod="MSDeploy" instead of WMSVC.
Note, it deploys correctly 95% of the time.
With the Team Foundation Server the CI & CD is possible and this is always good to use with TFS the automated build deployment as the projects which are currently using the TFS only the Admin permissions are required to set up the CI & CD for the project and the build process can be handled effectively there is no need of any separate tool.
This post will show you how to resolve most of the problems occurring after TFS synchronisation. Initially you should run synchronisation from development workspace from version control menu. After synchronisation you should check for any elements that are not processed.
After the build definition is done, the deployments are done with the release definition. For the Build & Release section in TFS, navigate to the Releases section and create a new release definition. Choose the option Empty, to start with an empty definition. After this choose the source that publish artifacts to be deployed.
For the Build & Release section in TFS, navigate to the Releases section and create a new release definition. Choose the option Empty, to start with an empty definition. After this choose the source that publish artifacts to be deployed. For the Release definition, add the multiple environment and tasks for that environment.
I know this sounds stupid, but do you have those folders open (or children thereof) on any computer? Especially if you had a dead remote desktop session or someone accessing it over the network share it will get a denial to be able to delete the directory.
Burned me a number of times, you're issue may be different though. I realize this is a late response, but found it while searching for my own issue and though I cuold help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With