我在TFS中构建了问题。我最近修改了Team Administration控件中的构建服务。但当我尝试构建它给我以下错误异常消息:访问路径'C:\ Builds \ 41 \ Legacy \ LegacyScoring_DEV_Build \ Binaries_PublishedWebsites \ AI.Services.FraudGuardScoringZone.Web_Package \ AI.Services.FraudGuardScoringZone.Web。 zip'被拒绝。 (类型UnauthorizedAccessException)异常堆栈跟踪:在System.IO .__ Error.WinIOError(Int32 errorCode,String maybeFullPath)处于System.IO.File.InternalDelete(String path,Boolean checkHost)at Microsoft.TeamFoundation.Common.FileSpec.DeleteFile(String path,Boolean throwExceptionOnFailure)Microsoft的Microsoft.TeamFoundation.Common.FileSpec.DeleteDirectoryInternal(String path),位于Microsoft的Microsoft.TeamFoundation.Common.FileSpec.DeleteDirectoryInternal(String path)的Microsoft.TeamFoundation.Common.FileSpec.DeleteDirectoryInternal(String path)。 System.Activities.CodeActivity.InternalExecute(ActivityInstance实例,ActivityExecutor executor,BookmarkManager bookmarkManager)上的Microsoft.TeamFoundation.Build.Workflow.Activities.DeleteDirectory.Execute(CodeActivityContext context)中的TeamFoundation.Common.FileSpec.DeleteDirectory(String path,Boolean recursive)在System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor,BookmarkManager b) ookmarkManager,location resultLocation)
答案 0 :(得分:0)
如果您更改了运行构建服务的帐户,则需要检查此帐户的权限。仅当构建服务帐户是该集合的项目集合构建服务帐户组的成员时,构建服务器才能在团队项目集合中构建和测试代码。
另外,尝试清理本地计算机和TFS AT计算机上的缓存文件夹: