Locked ContinuaContext.xml

Hi,
sometimes when i run a execute-program-action and give him the continua-xml I get this error:

EFOpenError: Cannot open file “C:\ContinuaCI_AgentWS\Ws\14273\ContinuaContext.xml”. The process cannot access the file because it is being used by another process

I can not reproduce this problem but it happens somethimes and then it breaks the build. I added a retry after 200 ms to access this file but also after 5 tries (1 second) the file is still locked. Could it be that sometimes Continua does not release the file correct?

I had a look a this, we’re using a FileStream to write it out, and that filestream is being closed/disposed correctly so I’m not sure what the cause is here. Do you have your antivirus software excluding the workspace folders (on the server and the agent)? AV software sometimes causes file locking issue, however that is usually transient.