NCover 3 error in Team City 6.5.6 with .Net Framework 2.0 on X86

Hi all,

I have installed Ncover 3 64bit on same machine where Team City 6.5.6 is installed. I am trying to generate a report and getting issue while running through Team City.

My operation system is 64bit.

Here is the build log:


[10:27:52]: [include] include
[10:27:53]: [include] property
[10:27:53]: [property] Read-only property "msbuild.type.debug" cannot be overwritten.
[10:27:53]: [include] property
[10:27:53]: [property] Read-only property "msbuild.type.release" cannot be overwritten.
[10:27:53]: [include] property
[10:27:53]: [property] Read-only property "build.configuration" cannot be overwritten.
[10:27:53]: [include] if
[10:27:53]: buildCoverage (1m:55s)
[10:27:53]: [buildCoverage] call (1m:55s)
Process exited with code 1
[10:29:48]: NAnt output:
[10:29:48]: [ncover] ******************* Program Output *******************
[10:29:48]: [ncover]
[10:29:48]: [ncover] ***************** Exception *****************
[10:29:48]: [ncover] -------------------------------------------------------------------------------
[10:29:48]: [ncover] ---- Top level exception: System.ComponentModel.Win32Exception
[10:29:48]: [ncover]
[10:29:48]: [ncover] The directory name is invalid
[10:29:48]: [ncover] at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
[10:29:48]: [ncover] at System.Diagnostics.Process.Start()
[10:29:48]: [ncover] at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
[10:29:48]: [ncover] at System.Diagnostics.ProcessStub.Start(ProcessStartInfo startInfo)
[10:29:48]: [ncover] at NCover.Framework.Profiling.LaunchExe.StartCoveredProcess()
[10:29:48]: [ncover] at NCover.Framework.Profiling.ALaunchedProcess.Start()
[10:29:48]: [ncover] at NCover.Framework.ProfilerDriver.ExecuteNCover(Int32& profiledAppCode)
[10:29:48]: [ncover] at NCover.Framework.ProfilerDriver.Execute(Int32& profiledAppCode)
[10:29:48]: [ncover] at NCover.ConsoleMain.ConsoleMain.RunCoverage(String[] args, IOutputWriter output)
[10:29:48]: [ncover] -------------------------------------------------------------------------------
[10:29:48]: [ncover]
[10:29:48]: [ncover]
[10:29:48]: [ncover] NCover.Console is returning exit code #20000
[10:29:48]: [ncover]
[10:29:48]: BUILD FAILED - 0 non-fatal error(s), 18 warning(s)
[10:29:48]: C:\BM\SL_3.2.80_Dev\Source\,8):
[10:29:48]: External Program Failed: C:\Program Files\NCover\NCover.Console.exe (return code was 20000)
[10:29:48]: Total time: 116 seconds.

My Ncover installation is in

C:\Program Files (x86)\NCover

My Nunit installation is in :

C:\Program Files (x86)\NUnit 2.4.7

When i checked the corflag

Microsoft (R) .NET Framework CorFlags Conversion Tool.  Version  3.5.30729.1
Copyright (c) Microsoft Corporation.  All rights reserved.
Version   : v2.0.50727
CLR Header: 2.5
PE        : PE32
CorFlags  : 9
ILONLY    : 1
32BIT     : 0
Signed    : 1

Configuration in Team city:

Runner type: NAnt (Runner for NAnt build files)
Build file:\Source\
Working directory: same as checkout directory
Targets: buildCoverage
NAnt home: C:\Program Files\nant-0.90
Target framework: unspecified
Command line parameters to NAnt.exe: not specified
Reduce test failure feedback time: OFF
.NET Code Coverage: NCover (3.x)
.NET Runtime: .NET Framework 2.0 x86
Path to NCover 3: %system.ncover.v3.x86.path%
NCover Arguments: view

Thanks all for your help,


Please sign in to leave a comment.