michael.e.obrien

I'm having an issue with our Team Build, and I'm hoping someone can offer some advise.

When a build is run, I get this error:

MSBUILD : warning : Test Run Error.

MSBUILD : warning : PublishRun: The process cannot access the file 'C:\Build\ProjectName\TestResults\ProjectName _2007-03-16 13_59_06_\In\BUILDMACHINE\data.coverage' because it is being used by another process.

There seems to be no set place this happens within the team build - sometimes it happens on our Debug build, sometimes the Release build, and sometimes both. All the test run sucessfully on my local 'desktop' build within a timely fashion, i.e., no detected exceptions or timeouts. Also, I've run this on a couple of our build machines, and it does occur on the 2 I've tried.

I've tried deleting the entire build structure on the build machine (so it's a full retrieval with no locked files), and I still get the error.

Does anyone have any suggestions on how to being trouble shooting this one

Thanks

--

Mike



Re: Team Foundation Server - Build Automation Unit Testing data.coverage access error

Aaron Hallberg - MSFT

See the following thread for a bit more information on this topic: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=458136&SiteID=1.

-Aaron






Re: Team Foundation Server - Build Automation Unit Testing data.coverage access error

michael.e.obrien

Thanks for the reply Aaron.

It turns out my original problem was the use of a x64 build machine. Apparently the code coverage is not x64 compatible. ( ! )

There are still some issues with consistency on the 32-bit build machine, but it "usually" finishes the build with code coverage result viewable.

Thanks

--

Mike