Failed to verify x64 COM object registration using DotCover Command Line 10.0.2 from TFS 2015 Build

Completed

Very similar issue to this one...

https://dotnettools-support.jetbrains.com/hc/en-us/community/posts/205834009-DotCover-won-t-run-NUnit-tests-but-the-standard-ReSharper-test-runner-does?input_string=Failed%20to%20verify%20x64%20COM%20object%20registration%20using%20DotCover%20Command%20Line%2010.0.2%20from%20TFS%202015%20Build

But...this issue does not seem to be linked to NUnit, as I have the same error message using MSTest, but ONLY when executed from a TFS 2015 Build.  From the command prompt on the server it's ok.

The error in the logfile is...

11:57:25.976 |I| CoverageSession#0 | LauncherCancelled exception recieved. Cancelling session. Exception's message: Operation was canceled by user. See below for more details:

Failed to verify x64 COM object registration: The system cannot find the file specified. (configuration id: '')

The command I am running is...

D:\Tools\DotCover\dotcover.exe analyse /TargetExecutable="C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\MsTest.exe" /TargetArguments="/testcontainer:D:\Tools\DotCover\Analyse\MyTestApp.dll /category:Unit" /TargetWorkingDir="D:\Tools\DotCover\Analyse" /Output="D:\Tools\DotCover\Analyse\report.xml" /ReportType="XML" /LogFile="D:\Tools\DotCover\Analyse\analyse.log"

After the error above (actually a warning in the logs), DotCover fails to create any snapshots and causes the build to fail.

 

Please sign in to leave a comment.