Access is denied

Hi,

on win 2008 server, we have a TFS build agent that get sources and launch a final builder project to build our solution.

Often the "access is denied" error happens on a text replace, move, or delete, ... action.

For example, 4 text replace actions are performed on the same file and the fourth one fails :

Text Find / Replace Text Replace [ DLL_RESOURCES_TRAD... ] with [ .resources.dll... ] in [ versioninfoInterop.rc ] 03:42:17 03:42:17 00:00:00
Completed
Expression to Match is : (?i)INTEROP_NAMEMatch took :0Found 2 matches.Writing replaced data to file X:\tlib\versioninfoInterop.rcFound 2 matches
Text Find / Replace Text Replace [ MAJOR,MINOR,RELEASE,BUILD... ] with [ 2,5,3,... ] in [ versioninfoInterop.rc ] 03:42:17 03:42:17 00:00:00
Completed
Expression to Match is : (?i)MAJOR,MINOR,RELEASE,BUILDMatch took :0Found 2 matches.Writing replaced data to file X:\tlib\versioninfoInterop.rcFound 2 matches
Text Find / Replace Text Replace [ MAJOR.MINOR.RELEASE.BUILD... ] with [ 2.5.3.... ] in [ versioninfoInterop.rc ] 03:42:17 03:42:17 00:00:00
Completed
Expression to Match is : (?i)MAJOR\.MINOR\.RELEASE\.BUILDMatch took :0Found 1 match.Writing replaced data to file X:\tlib\versioninfoInterop.rcFound 1 matches
Text Find / Replace Text Replace [ MAJOR.MINOR... ] with [ 2.5... ] in [ versioninfoInterop.rc ] 03:42:17 03:42:17 00:00:00
Error
Expression to Match is : (?i)MAJOR\.MINORMatch took :0Found 1 match.Writing replaced data to file X:\tlib\versioninfoInterop.rcAn error occured:Unable to write to:X:\tlib\versioninfoInterop.rcCannot create file "X:\tlib\versioninfoInterop.rc". Access is denied


Hi

My apologies for the delay in replying. Do you have antivirus software installed on your build agent machine? One thing you can try is to add a small pause between actions.

Hi Vincent,

yes we tried to add small delay between actions and as you thought we don’t have the errors anymore.
I didn’t know the cause, so you think it can be the antivirus.