"File Already in use" error

Hi,

Here is my situation:
1. I am trying to automate the build and running of the MSTest test suite using Teamcity.
2. As a part of the tests, I have to start a third party application using a file, which is proprietary to that software.
3. The software however complains that the "File is already in use" and throws exceptions.
4. When I download the same code at someother location, the MSTest runs fine.

I am suspecting that the TeamCity processes running in background might be actually keeping a handle on the files present in its build folder. And hence the "File already in use" error.
I already tried to stop the "TeamCity Build Agent" and "TeamCity Server" in the windows services and then actually went into the build folder and manually ran the tests. Still same error.

Are there any other background TeamCity processes I can stop?

Thanks in Advance

RK

1 comment
Comment actions Permalink

Hello Ravi,

please try to configure Swabra plugin http://confluence.jetbrains.com/display/TCD8/Build+Files+Cleaner+%28Swabra%29 (packed with latest installation) as a build feature http://confluence.jetbrains.com/display/TCD8/Adding+Build+Features. There you can monitor or kill processes which lock files..

regards

Zdenek

0

Please sign in to leave a comment.