TFS2012 - Access Denied While Copying Diagnostic Activity Logs
I have a problem with TFS2012 assemblies that I cannot understand and cannot find a solution.
Setting:
Separate SQL server, separate TFS application server (TFSAT01 / WinSvr08R2) and separate build machine (TFSBLD01 / Win7x64).
Drop share created on TFSAT01 - R / W acess given to two computers in our domain: TFSAT01 $ and TFSBLD01 $ (as per # 8 http://msdn.microsoft.com/en-us/library/bb778394.aspx )
The build controller is configured in the TFS application. server TFSAT01.
Build agents run on build machine TFSBLD01.
Problem:
My CI build completes and copies all binaries to the share.
But I keep getting one error under "Other errors and warnings" in the build output window, which says, "An error occurred while copying the diagnostic activity logs to the" Drop "folder. Details: Accessing path" \ TFSAT01 \ Drops \ PRODUCT- CI \ PRODUCT-CI_20130211.16 \ Logs \ ActivityLog.xml 'is denied. "The ActivityLog.xml file is indeed written and I can access it.
Any ideas why I am getting this error even though the share seems to be configured with the correct permissions?
Note: I can work around this error by specifying a user account for the build agent to use (also with R / W access to the share), but I would prefer if I could use the default NetworkService credentials used by the build controller and agents.
source to share
Adding to resolution based on discussion in comments
The build controller account must have R / W permissions for the drop location. The account listed here was TFSAT01 $, while the build controller was configured as a network service. Since this is not the same account granting R / W permissions for NT AUTHORITY \ NETWORK SERVICE, this is a required fix.
source to share