Welcome, Guest!

NCover.Console.exe (return code was 20000)

NCover.Console.exe (return code was 20000)

by cbcl on Monday July 14, 2008, 09:01 AM

We are running NCover using NANT and TeamCity, about 30% of the time we are getting the following :

[exec] ***************** Exception *****************
[exec]
[exec] -- Top-level exception (System.Exception)
[exec] No data was collected.
[exec] -- Stack Trace
[exec] at NCover.Framework.ProfilerDriver._GetCoverageData()
[exec] at NCover.Framework.ProfilerDriver.Execute()
[exec] at NCover.ConsoleMain.ConsoleMain.Main(String[] args)
[exec]

BUILD FAILED

C:\TC-Build\work\55c934587b3e89af\build24420.tmp(31,6):
External Program Failed: C:\Program Files\NCover\NCover.Console.exe (return code was 20000)

Total time: 891.3 seconds.

when it works we get
[12:38:15]: [exec] ***************** End Program Output *****************
[12:38:16]: [exec]
[12:38:16]: [exec] Execution Time: 00:18:13.4375000s
[12:38:16]: [exec] Sequence Point Coverage: 73.2%
[12:38:16]: [exec] Branch Coverage: 66.6%
[12:38:16]: [exec]
[12:38:16]: [exec] Coverage Html: C:\TC-Build\work\55c934587b3e89af\Coverage.html
[12:38:16]: [exec] Coverage Xml: C:\TC-Build\work\55c934587b3e89af\Coverage.Xml
[12:38:16]: [exec] Coverage Log: C:\TC-Build\work\55c934587b3e89af\Coverage.log

We are only using one TC build agent, on the same server as the TC server.
We have tried using //reg and registering manually
The machine is win2003 standard svr x64 R2
Many thanks,

Micah.

RE: NCover.Console.exe (return code was 20000)

by sporewell on Thursday July 17, 2008, 07:29 AM

micah,

I've elevated this post to a support request and should have an initial answer for you soon.

Stephen

RE: NCover.Console.exe (return code was 20000)

by voorhees on Thursday October 09, 2008, 09:12 PM

Was there any resolution on this issue? I have the same error but in my case it happens on all of my builds. I am running win 2003 standard sp2 x86.

RE: NCover.Console.exe (return code was 20000)

by voorhees on Friday October 10, 2008, 04:50 PM

I figured this out. I had to regsvr32 NCover.Lib.x86.dll on my TeamCity server... Doing a complete install of NCover would probably have worked too.

RE: NCover.Console.exe (return code was 20000)

by dhauser on Sunday November 23, 2008, 05:06 AM

I am having the same problem. I tried running the regsvr32 command on the build agent but it didn't help. I see this same problem every time, not intermittently. Any ideas?