Issue with TF Get

I'm using the Team Foundation Get action to grab the latest version of a folder.  My issue is that it sometimes gives me the error 'the process cannot access the file because it is being used by another process'.  It seems to get all of the files fine but then throws this error once or twice.  I can't tell from the log which file it is, so I'm trying to reproduce it with just using tf.exe manually to see if its a TFS/machine issue or a finalbuilder issue.

So far when I use tf.exe I don't get any issue.  Can you help me figure out exactly what finalbuilder is doing with tf.exe so I can reproduce it in the command line?

Here's the start of my TF get action log:

Path to Executable: c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\tf.exe
Workspace Directory: C:\X\Y\Z
Command line: get . /all /overwrite /recursive /noprompt
The process cannot access the file because it is being used by another process
 

The workspace directory is correct.  I'm not sure how this is being set in finalbuilder, normally with TFS I'd just run:

tf.exe get X\Y\Z /all /overwrite /recursive /noprompt

This works every time.  Anyway, I'm just trying to figure out if this is an issue with Finalbuilder, or TF.exe/my machine etc to narrow down the cause.  Any insight would be appreciated.

Additionally, I've tried rebooting the machine and immediately running FB in case there was some running program etc. with any of the source files open (although there shouldn't be) and I still received the error.

Hi Eric,

I’ve just had a look over the code and from what I can tell we don’t do anything extra that would be causing the reported error. To help track down which file is locked, download FileMon (http://technet.microsoft.com/en-us/sysinternals/bb896642.aspx) and have it monitor the file system while the action executes.

Regards,
Paul.

Hi Eric

Do you have antivirus sofware running on this machine? We have seen strange errors like this before (not this specific one) when Av software is running. Other than that we had a look through the code and the error looks to be output by tf.exe, as any error message we log would have some sort of prefix on them.

Hi,
Sorry for taking so long to respond. We do have symantec corporate antivirus on the machine. I will disable that and see if the issue goes away.

Agreed the error is coming from tf.exe - but I can’t reproduce the error outside of FB so I was looking for the exact params FB was using. Anyway, I’ll disable AV and check filemon to see if I can track down the cause.

Thanks