Profiler connection not established - Win 2003 SP1, .NET 2.0
Profiler connection not established - Win 2003 SP1, .NET 2.0
When I run the new NCover 1.5.5 (Sorry I haven't tried it on older version) NCover hangs, and I get this error message in the event log:
.NET Runtime version 2.0.50727.42 - Failed to CoCreate profiler.
I did try the steps listed in this post as well to no avail:
http://ncover.org/SITE/forums/post/94.aspx
I've tried executing the cmd line listed below as an admin and got the same errors.
None of the MbUnit reportsare created either :(
Server Specs:
Windows Server 2003 Enterprise Edition with SP1
Dual 2.8 GHz Xeon's
1GB of RAM
Here is the command line I'm using to launch NCover.Console.exe
d:\builds\Telehealth\Code\tools\NCover\NCover.Console.exe //x d:\builds\Telehealth\Code\Reporting\NCover-result.xml //l d:\builds\Telehealth\Code\Reporting\NCover-Coverage.log //w d:\builds\Telehealth\Code d:\builds\Telehealth\Code\tools\MbUnit\MbUnit.Cons.exe /assembly-path:D:\builds\Telehealth\Code\AllUnitTests /report-folder:d:\builds\Telehealth\Code\Reporting /report-name-format:MbUnit-result /report-type:Xml D:\builds\Telehealth\Code\AllUnitTests\StackFixture.dll
On the console, I see the following output:
NCover.Console v1.5.5 - Code Coverage Analysis for .NET - http://ncover.org
Copyright (c) 2004-2005 Peter Waldschmidt
Command: d:\builds\Telehealth\Code\tools\MbUnit\MbUnit.Cons.exe
Command Args: "/assembly-path:D:\builds\Telehealth\Code\AllUnitTests" "/report-f
older:d:\builds\Telehealth\Code\Reporting" "/report-name-format:MbUnit-result" "
/report-type:Xml" "D:\builds\Telehealth\Code\AllUnitTests\StackFixture.dll"
Working Directory: d:\builds\Telehealth\Code
Assemblies:
Coverage Xml: d:\builds\Telehealth\Code\Reporting\NCover-result.xml
Coverage Log: d:\builds\Telehealth\Code\Reporting\NCover-Coverage.log
Waiting for profiled application to connect...MbUnit 1.0.2419.37446 Console Application (running on .Net 2.0.0.0)
Author: Jonathan de Halleux
<snip>
Parsed arguments:
-- Parsed Arguments
Files:
D:\builds\Telehealth\Code\AllUnitTests\StackFixture.dll
Assembly paths:
D:\builds\Telehealth\Code\AllUnitTests
Report folder: d:\builds\Telehealth\Code\Reporting
Report Name Format: MbUnit-result
Report types:
Xml
Show reports: False
Filter Category:
Filter Author:
Filter Namespace:
Filter Type:
Verbose: False
ShadowCopyFiles: False
Start time: 4:03 PM
[info] Loading test assemblies
[info] Starting execution
[info] Sorting assemblies by dependencies
[info] etting up fixture colors
[info] Loading StackFixture
[info] Found 14 tests
[info] Running fixtures.
[info] Tests finished: 14 tests, 13 success, 0 failures, 1 ignored
[info] All Tests finished: 14 tests, 13 success, 0 failures, 1 ignored in 0.0468
75 seconds
[info] Creating reports in d:\builds\Telehealth\Code\Reporting
[info] Created xml report
[info] MbUnit execution finished in 1.203125s.
Connected
Profiled process terminated. Profiler connection not established.
Sorry if this message is a little bit disjointed, I'm trying to fill in every possible piece of information I can think of that may be needed.
Re: NCover/NUnit 2.2.7 - Constantly Accesses DVD Drive
If you code doesn't requests drive D: the certain reason: CoverLib.dll was incorrectly registered.
Look at italic registry entry. If you have there path to your DVD drive it might cause the problem
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\CLSID\{6287B5F9-08A1-45E7-9498-B5B2E7B02995}]
@="NCover Coverage Profiler"
[HKEY_CLASSES_ROOT\CLSID\{6287B5F9-08A1-45E7-9498-B5B2E7B02995}\InprocServer32]
@="C:\\PROGRA~1\\NCover\\CoverLib.dll"
[HKEY_CLASSES_ROOT\CLSID\{6287B5F9-08A1-45E7-9498-B5B2E7B02995}\ProgID]
@="CvrLib.CoverageProfiler.5"
[HKEY_CLASSES_ROOT\CLSID\{6287B5F9-08A1-45E7-9498-B5B2E7B02995}\VersionIndependentProgID]
@="CvrLib.CoverageProfiler"
Re: NCover/NUnit 2.2.7 - Constantly Accesses DVD Drive
This was not the problem, as everything was registered correctly.
The problem was actually caused by the removable CD/DVD drive in my Dell Latitude D620 laptop. Ejecting it and reinserting it cured the problem.
Re: NCover/NUnit 2.2.7 - Constantly Accesses DVD Drive
I had the exact same problem, rebooting solved it.
Right before the popop from nunit-console.exe began, I had removed a burned CD from the rw DVD drive. Dont know if it matters, but my computer is also a DELL (Optiplex GX620).