gpt4 book ai didi

TFS 2012 持续集成部署失败 - 目录不为空

转载 作者:行者123 更新时间:2023-12-04 15:45:01 26 4
gpt4 key购买 nike

偶尔得到错误

An error was encountered when processing operation 'Delete Directory' on

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



我正在使用 Web 部署 WMSVC,并且用户具有对站点根目录的完全访问权限(通过 IIS 设置 > 配置 Web 部署发布

编辑

或者不那么频繁:

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.)



我按照用户(域用户)的说明进行操作,但没有区别。保存的发布设置具有 publishMethod="MSDeploy"而不是 WMSVC。

请注意,它在 95% 的时间内正确部署。

最佳答案

我知道这听起来很愚蠢,但是您是否在任何计算机上打开了这些文件夹(或其子文件夹)?特别是如果您的远程桌面 session 无效或有人通过网络共享访问它,它将被拒绝删除目录。

烧了我很多次,你的问题可能会有所不同。我意识到这是一个迟到的回应,但在搜索我自己的问题时发现了它,尽管我可以提供帮助。

关于TFS 2012 持续集成部署失败 - 目录不为空,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18484114/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com