TFS 2012构建"访问路径被拒绝" [英] TFS 2012 Build "Access to Path Denied"

查看:1405
本文介绍了TFS 2012构建"访问路径被拒绝"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用TFS 2012生成并运行到错误

I’m using TFS 2012 Build and running into an error

对路径的访问被拒绝

正在构建的解决方案包含约15个项目,其中一些正在使用的Castle.Components.Validator.2.5.0组装。

我已经看到,谈谈TFS生成拒绝访问错误以外的其他职位,但他们一般指的是具有同步建立运行。在这种情况下,只有一个构建在同一时间运行。此外,一旦构建运行在服务器重新启动或构建尚未运行一段时间出现错误。

和失败,下一次成功,每一个之后,直到构建尚未运行重新获得成功一会儿,或重新启动服务器。尽管我们可以解决这个得到的,它是一个手动头疼

下面是错误:

The solution being built contains about 15 projects of which a number are using the Castle.Components.Validator.2.5.0 assembly.

I have seen other posts that talk about the TFS Build Access Denied errors, but they generally refer to having simultaneous builds running. In this case only one build runs at a time. Also, the error occurs when the server is restarted or the build has not run for some time.

Once a build is run and fails, the next one succeeds and each one after that succeeds again until the build hasn’t been run for a while or the server is restarted. Although we can get around this, it is a manual headache.

Here is the error:

C:\\ WINDOWS \\ Microsoft.NET \\ Framework64 \\ v4.0.30319 \\ Microsoft.Common.targets(3513):无法复制文件D:\\构建\\ 12 \\富\\办理建设的\\ Sources \\包\\ Castle.Components.Validator.2.5.0 \\ lib目录\\ NET40 \\ Castle.Components.Validator.dll到D:\\构建\\ 12 \\富\\办理建设\\二进制\\ Castle.Components.Validator.dll

访问路径。'D:\\构建\\ 12 \\富\\入住构建\\二进制\\ Castle.Components.Validator.dll'被拒绝

C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (3513): Unable to copy file "D:\Builds\12\Foo\Check-In Build\Sources\packages\Castle.Components.Validator.2.5.0\lib\NET40\Castle.Components.Validator.dll" to "D:\Builds\12\Foo\Check-In Build\Binaries\Castle.Components.Validator.dll".

Access to the path 'D:\Builds\12\Foo\Check-In Build\Binaries\Castle.Components.Validator.dll' is denied.

在该日志文件看,你可以看到,构建正试图复制文件的两倍。因为第一个对文件的锁定,第二个失败,从而生成失败。下面是日志文件的一个片段,显示发生了什么:

When looking at the log file you can see that the build is trying to copy the file twice. Because the first one has a lock on the file, the second one fails and thus the build fails. Here is a snippet of the log file that shows what is happening:

2> _CopyFilesMarkedCopyLocal:
           从复制文件D:\\构建\\ 12 \\富\\入住构建的\\ Sources \\包\\ Castle.Components.Validator.2.5.0 \\ lib目录\\ NET40 \\ Castle.Components.Validator.dll到D:\\构建\\ 12 \\富\\办理建设\\二进制\\ Castle.Components.Validator.dll。
      

5> _CopyFilesMarkedCopyLocal:
           从复制文件D:\\构建\\ 12 \\富\\入住构建的\\ Sources \\包\\ Castle.Components.Validator.2.5.0 \\ lib目录\\ NET40 \\ Castle.Components.Validator.dll到D:\\构建\\ 12 \\富\\办理建设\\二进制\\ Castle.Components.Validator.dll。
     

2> _CopyFilesMarkedCopyLocal:
           从复制文件D:\\构建\\ 12 \\富\\入住构建的\\ Sources \\包\\ MvcContrib.Mvc3.FluentHtml-ci.3.0.96.0 \\ lib目录\\ MvcContrib.FluentHtml.dll到D:\\构建\\ 12 \\富\\办理建设\\二进制\\ MvcContrib.FluentHtml.dll。
           从复制文件D:\\构建\\ 12 \\富\\入住构建的\\ Sources \\包\\ RhinoMocks.3.6 \\ lib目录\\ Rhino.Mocks.dll到D:\\构建\\ 12 \\富\\办理建设\\双星\\ Rhino.Mocks.dll。

2>_CopyFilesMarkedCopyLocal: Copying file from "D:\Builds\12\Foo\Check-In Build\Sources\packages\Castle.Components.Validator.2.5.0\lib\NET40\Castle.Components.Validator.dll" to "D:\Builds\12\Foo\Check-In Build\Binaries\Castle.Components.Validator.dll".

5>_CopyFilesMarkedCopyLocal: Copying file from "D:\Builds\12\Foo\Check-In Build\Sources\packages\Castle.Components.Validator.2.5.0\lib\NET40\Castle.Components.Validator.dll" to "D:\Builds\12\Foo\Check-In Build\Binaries\Castle.Components.Validator.dll".

2>_CopyFilesMarkedCopyLocal: Copying file from "D:\Builds\12\Foo\Check-In Build\Sources\packages\MvcContrib.Mvc3.FluentHtml-ci.3.0.96.0\lib\MvcContrib.FluentHtml.dll" to "D:\Builds\12\Foo\Check-In Build\Binaries\MvcContrib.FluentHtml.dll". Copying file from "D:\Builds\12\Foo\Check-In Build\Sources\packages\RhinoMocks.3.6\lib\Rhino.Mocks.dll" to "D:\Builds\12\Foo\Check-In Build\Binaries\Rhino.Mocks.dll".

如何解决这将是极大的AP preciated任何帮助。

Any help on how to fix this would be greatly appreciated.

推荐答案

它看起来像有两个项目复制相同的文件。根据不同的定时,他们有时发生在同一时间,从而导致失败。你要跟踪的节点ID后发现代码项目。见<一href=\"http://blogs.msdn.com/b/buckh/archive/2012/01/21/a-tool-to-find-duplicate-copies-in-a-build.aspx\">http://blogs.msdn.com/b/buckh/archive/2012/01/21/a-tool-to-find-duplicate-copies-in-a-build.aspx更多详情及code,可能会追查你。

It looks like there are two projects copying the same file. Depending on the timing, they sometimes happen at the same time, resulting in the failure. You have to trace the node id back to find the source project. See http://blogs.msdn.com/b/buckh/archive/2012/01/21/a-tool-to-find-duplicate-copies-in-a-build.aspx for more details and code that may track it down for you.

这篇关于TFS 2012构建&QUOT;访问路径被拒绝&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆