Rob Chartier ~ Contemplation...

.NET, C#, Work, etc.

News






www.flickr.com
This is a Flickr badge showing public photos from Rob & Kat Chartier. Make your own badge here.


Even Quicker Links

NCover: Profiled process terminated. Profiler connection not established

If you are encountering this issue with your CI process and using NCover here is a fix:

http://ncover.org/SITE/forums/thread/43.aspx

Details:

After playing around with NCover 1.5.1 beta 2 I was seeing the "Profiled process terminated. Profiler connection not established." error when running under a limited user account.  The account was a member of Debugger Users, but that was all.  There was no Coverage.log file being produced, and after a minute or so NCover would fail with the "Profiler Connection not established" error message.  In order to get NCover to work under this account I had to do the following:

Set account's registry permissions

Key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

Permissions:

Query Value
Set Value
Create Subkey
Enum Subkeys
Notify
Read Control

Re-register the CoverLib COM component

Run "regsvr32 coverlib.dll" from the directory where NCover is installed.  This will need to be run from an administrator account.

I tried re-registering coverlib.dll since the COM registry entries seemed to only exist in HKCU for the Administrator's account rather than in HKLM.

I'm guessing that the installer only installs NCover for the current user (i.e. Administrator) rather than for all users, but I could be totally wrong.

Comments

Sean Chambers said:

Thanks!

I was running into this problem and couldn't figure it out. I just gave elevated privledges to the account CC was running as.

Cheers!

# October 7, 2007 1:16 AM

Duncan Bayne said:

Thanks - I was having exactly this problem, and ensuring that NCover is properly registered at the start of the build script fixed it.

# October 23, 2007 2:28 AM

lee Englestone said:

Run "regsvr32 coverlib.dll" fixed the problem for me!

Cheers.

-- Lee

# July 10, 2008 11:17 AM

NCover Nant Team City Integration at Mark Needham said:

Pingback from  NCover Nant Team City Integration at Mark Needham

# August 25, 2008 4:44 PM

EricSavage said:

No luck with the above - I found that I needed to run nunit's x86 console exe on my machine instead of the standard one.

# June 30, 2009 5:28 AM

Muthanna AlJelihawi said:

Thanks alot

Runing

"regsvr32 coverlib.dll"

fixed the problem for me!

# September 30, 2009 3:25 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)