Stopping Service [WWW Publishing Service] - Fails
Stopping Service [WWW Publishing Service] - Fails
[exec] Stopping Service [World Wide Web Publishing Service] [exec] Exception [exec] -- Top-level exception (System.Runtime.InteropServices.SEHException) [exec] External component has thrown an exception. [exec] -- Stack Trace [exec] at CxxThrowException(Void* , sThrowInfo ) [exec] at ShMemReader.GetMemoryPointer(ShMemReader , UInt32 addr) [exec] at ShMemLinkedList.getHeadNode(ShMemLinkedList , ShMemReader rdr) [exec] at ShMemLinkedList.count(ShMemLinkedList , ShMemReader rdr) [exec] at NCover.Data.MwShMemLinkedList<NCover::Interfaces::IModuleInfo ^\,ModuleInfo\,NCover::Data::ModuleInfoConverter>.get_Count() [exec] at NCover.Framework.CoverageData.ReadBinary() [exec] at NCover.Framework.CoverageData..ctor(INCoverData data) [exec] at NCover.Framework.ProfilerDriver.GetCoverageData() [exec] at NCover.Framework.ProfilerDriver.Execute() [exec] at NCover.ConsoleMain.ConsoleMain.Main(String[] args)
What to do to resolve this or what info do you need to prepare a fix?
RE: Stopping Service [WWW Publishing Service] - Fails
wooyek,
it looks like NCover ran with the wrong profiler registered. Run NCover again, this time supplying the "//reg" argument on the command line, and see if that fixes the problem.
RE: Stopping Service [WWW Publishing Service] - Fails
It doesn't help. Is there any other solution ? Regards.
[exec] Exception [exec] -- Top-level exception (System.Runtime.InteropServices.SEHException) [exec] External component has thrown an exception. [exec] -- Stack Trace [exec] at CxxThrowException(Void* , sThrowInfo ) [exec] at ShMemReader.GetMemoryPointer(ShMemReader , UInt32 addr) [exec] at ShMemLinkedList.getHeadNode(ShMemLinkedList , ShMemReader rdr) [exec] at ShMemLinkedList.count(ShMemLinkedList , ShMemReader rdr) [exec] at NCover.Data.MwShMemLinkedList<NCover::Interfaces::IModuleInfo ^\,ModuleInfo\,NCover::Data::ModuleInfoConverter>.get_Count() [exec] at NCover.Framework.CoverageData.ReadBinary() [exec] at NCover.Framework.CoverageData..ctor(INCoverData data) [exec] at NCover.Framework.ProfilerDriver.GetCoverageData() [exec] at NCover.Framework.ProfilerDriver.Execute() [exec] at NCover.ConsoleMain.ConsoleMain.Main(String[] args)
Build Error: NAnt.Core.BuildException External Program Failed: D:\usr\tools\NCover-2.1.0\NCover.Console.exe (return code was 20000) in D:\servers\CruiseControl.NET\projects\Polkomtel\Kokp\misc\nant\common-solution.nant.build line: 441 col: 6
at NAnt.Core.Tasks.ExternalProgramBase.ExecuteTask() at NAnt.Core.Tasks.ExecTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) at NAnt.Core.Project.Execute() at NAnt.Core.Project.Run()
RE: Stopping Service [WWW Publishing Service] - Fa
Do you need some other info to resolve the issue?
RE: Stopping Service [WWW Publishing Service] - Fa
echo] c:\Program Files\NCover\NCover.Console.exe [echo] "D:\usr\tools\nant-0.85\bin\NAnt.exe" nunit.quick //a Chronos.Core;Chronos.Tests //x D:\servers\CruiseControl.NET\projects\Qualent\Chronos/build\Qualent-Chronos.Coverage.xml //w D:\servers\CruiseControl.NET\projects\Qualent\Chronos //reg [exec] NCover.Console v2.1.0 (Administrator x64) - Code Coverage Analysis for .NET [exec] Copyright (c) 2008 Gnoso Inc. [exec] http://www.ncover.com [exec] Registered to Customer #: 11832 [exec] NCover Enterprise Edition (1 User) [exec] 23 days left in the trial period. [exec] Command: D:\usr\tools\nant-0.85\bin\NAnt.exe [exec] Command Args: "nunit.quick" [exec] Working Directory: D:\servers\CruiseControl.NET\projects\Qualent\Chronos [exec] Assemblies: Chronos.Core;Chronos.Tests [exec] Program Output [exec] NAnt 0.85 (Build 0.85.2478.0; release; 2006-10-14)
[...]
[exec] Tests run: 7, Failures: 0, Not run: 1, Time: 26.595 seconds [exec] [nunit2] [exec] Tests not run: [exec] 1) Chronos.Core.Configuration.OptionsBoxTests.ShowOptions : Windows Form [exec] [nunit2] [exec] [nunit2] [exec] BUILD SUCCEEDED - 2 non-fatal error(s), 0 warning(s) [exec] Total time: 31 seconds. [exec] Exception [exec] -- Top-level exception (System.Runtime.InteropServices.SEHException) [exec] External component has thrown an exception. [exec] -- Stack Trace [exec] at CxxThrowException(Void* , sThrowInfo ) [exec] at ShMemReader.GetMemoryPointer(ShMemReader , UInt32 addr) [exec] at ShMemLinkedList.getHeadNode(ShMemLinkedList , ShMemReader rdr) [exec] at ShMemLinkedList.count(ShMemLinkedList , ShMemReader rdr) [exec] at NCover.Data.MwShMemLinkedList<NCover::Interfaces::IModuleInfo ^\,ModuleInfo\,NCover::Data::ModuleInfoConverter>.get_Count() [exec] at NCover.Framework.CoverageData.ReadBinary() [exec] at NCover.Framework.CoverageData..ctor(INCoverData data) [exec] at NCover.Framework.ProfilerDriver.GetCoverageData() [exec] at NCover.Framework.ProfilerDriver.Execute() [exec] at NCover.ConsoleMain.ConsoleMain.Main(String[] args)
Build Error: NAnt.Core.BuildException External Program Failed: c:\Program Files\NCover\NCover.Console.exe (return code was 20000) in D:\servers\CruiseControl.NET\projects\Qualent\Chronos\misc\nant\common-solution.nant.build line: 444 col: 6
at NAnt.Core.Tasks.ExternalProgramBase.ExecuteTask() at NAnt.Core.Tasks.ExecTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) at NAnt.Core.Project.Execute() at NAnt.Core.Project.Run()
RE: Stopping Service [WWW Publishing Service] - Fails
wooyek,
Thanks for the extra information, the exception you're getting still looks like a mismatched NCover.lib dll. Are you running on a 32 or a 64 bit platform? Is NCover installed anywhere on the machine other than "C:\Program Files\NCover"? Are any other versions of NCover installed on the machine?
Stephen
RE: Stopping Service [WWW Publishing Service] - Fa
I am running 64 version.
Company policy requires me to have build & testing related tools in another location, not bound to the system, if it's possible. I have moved installation from default location on c: to another location D:\usr\tools\NCover-2.1.0. I have registered NCover.Lib.x64.dll, in new location.
D:\usr\tools\NCover-2.1.0>regsvr32 NCover.Lib.x64.dll D:\usr\tools\NCover-2.1.0>%SystemRoot%\Syswow64\regsvr32 NCover.Lib.x64.dll
After I have uninstalled Ncover form add/remove proograms, and again registering NCover.Lib.x64.dll library in D:\usr\tools\NCover-2.1.0, I;ve got:
[exec] [nunit2] [exec] BUILD SUCCEEDED - 2 non-fatal error(s), 0 warning(s) [exec] Total time: 4.6 seconds. [exec] Exception [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)
Build Error: NAnt.Core.BuildException External Program Failed: D:\usr\tools\NCover-2.1.0\NCover.Console.exe (return code was 20000) in D:\servers\CruiseControl.NET\projects\Qualent\Chronos\misc\nant\common-solution.nant.build line: 444 col: 6
at NAnt.Core.Tasks.ExternalProgramBase.ExecuteTask() at NAnt.Core.Tasks.ExecTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) at NAnt.Core.Project.Execute() at NAnt.Core.Project.Run()
What's the supported procedure for installation in not default location? Can installer prompt for installation directory?
RE: Stopping Service [WWW Publishing Service] - Fails
wooyek,
Installation in other directories is accomplished by copying and pasting the binaries to the other location after NCover is installed, which you have done.
Your second line: "%SystemRoot%\Syswow64\regsvr32 NCover.Lib.x64.dll" should instead register "NCover.Lib.x86.dll"
Finally, are you profiling a CLR application that has the header flags set to 32BIT? If so, the 32-bit version of NCover is installed in "C:\Program Files (x86)\NCover" and you will have to use that instalation to profile 32-bit programs.
Stephen Ward
RE: Stopping Service [WWW Publishing Service] - Fa
It solves the problem. Now we are trying to run the application with //iis
...value=""${nant.exe}" nunit.quick //a ${coverage.target} //x ${dir.build}\${solution.name}.Coverage.xml //w ${basedir} //reg //iis"/>
and another exception is thrown
exec] NCover.Console v2.1.0 (Administrator x86) - Code Coverage Analysis for .NET [exec] Copyright (c) 2008 Gnoso Inc. [exec] http://www.ncover.com [exec] Registered to Customer #: 11832 [exec] NCover Enterprise Edition (1 User) [exec] 19 days left in the trial period. [exec] Command: D:\usr\tools\nant-0.85\bin\NAnt.exe [exec] Command Args: "nunit.quick" [exec] Working Directory: D:\servers\CruiseControl.NET\projects\Polkomtel\Kokp [exec] Assemblies: Kokp.Core;Kokp.Tests [exec] Program Output [exec] Stopping Service [World Wide Web Publishing Service]... [exec] Exception [exec] -- Top-level exception (System.NullReferenceException) [exec] Object reference not set to an instance of an object. [exec] -- Stack Trace [exec] at NCover.Framework.StartupProfiledProcess.SynchronousStop() [exec] at NCover.Framework.StartupProfiledProcess.StartService() [exec] at NCover.Framework.StartupProfiledProcess.Start() [exec] at NCover.Framework.ProfilerDriver.Execute() [exec] at NCover.ConsoleMain.ConsoleMain.Main(String[] args)
Build Error: NAnt.Core.BuildException External Program Failed: D:\usr\tools\NCover-2.1.0-32bit\NCover.Console.exe (return code was 20000) in D:\servers\CruiseControl.NET\projects\Polkomtel\Kokp\misc\nant\common-solution.nant.build line: 441 col: 6
at NAnt.Core.Tasks.ExternalProgramBase.ExecuteTask() at NAnt.Core.Tasks.ExecTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) at NAnt.Core.Project.Execute() at NAnt.Core.Project.Run()
Any solution ?
Regards
RE: Stopping Service [WWW Publishing Service] - Fails
I've emailed you an updated version of NCover that should fix this bug.
Stephen
RE: Stopping Service [WWW Publishing Service] - Fa
What can be the reason ?
[exec] NCover.Console v2.1.0 (Administrator x86) - Code Coverage Analysis for .NET [exec] Copyright (c) 2008 Gnoso Inc. [exec] http://www.ncover.com [exec] Registered to Customer #: 11832 [exec] NCover Enterprise Edition (1 User) [exec] 17 days left in the trial period. [exec] Command: D:\usr\tools\nant-0.85\bin\NAnt.exe [exec] Command Args: "nunit.quick" [exec] Working Directory: D:\servers\CruiseControl.NET\projects\Qualent\Chronos [exec] Assemblies: Chronos.Core;Chronos.Tests [exec] Program Output [exec] Exception [exec] -- Top-level exception (System.IO.IOException) [exec] The specified registry key does not exist. [exec] -- Stack Trace [exec] at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) [exec] at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck, RegistrySecurity registrySecurity) [exec] at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey) [exec] at NCover.Framework.ProfilerDriver._RegisterProcess(String regPath) [exec] at NCover.Framework.ProfilerDriver.Execute() [exec] at NCover.ConsoleMain.ConsoleMain.Main(String[] args)
Build Error: NAnt.Core.BuildException External Program Failed: D:\usr\tools\NCover-2.1.0-32bit\NCover.Console.exe (return code was 20000) in D:\servers\CruiseControl.NET\projects\Qualent\Chronos\misc\nant\common-solution.nant.build line: 444 col: 6
at NAnt.Core.Tasks.ExternalProgramBase.ExecuteTask() at NAnt.Core.Tasks.ExecTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) at NAnt.Core.Project.Execute() at NAnt.Core.Project.Run()
RE: Stopping Service [WWW Publishing Service] - Fails
qualent,
The exception happened because the win32 functions that support .NET ran into a problem: possibly the key was deleted at the same time NCover tried to access it.
Is NCover running with administrative provileges? Does the error keep happening? What culture/language is the computer running?
RE: Stopping Service [WWW Publishing Service] - Fa
- Yes (but it should not)
- Yes (but it should not ;)
- en
W2K3 R2 x64 SP2
RE: Stopping Service [WWW Publishing Service] - Fa
[echo] D:\usr\tools\NCover-2.1.0-32bit\NCover.Console.exe [echo] "D:\usr\tools\nant-0.85\bin\NAnt.exe" nunit.quick //a Chronos.Core;Chronos.Tests //x D:\servers\CruiseControl.NET\projects\Qualent\Chronos/build\Qualent-Chronos.Coverage.xml //w D:\servers\CruiseControl.NET\projects\Qualent\Chronos //reg [exec] NCover.Console v2.1.0 (Administrator x86) - Code Coverage Analysis for .NET [exec] Copyright (c) 2008 Gnoso Inc. [exec] http://www.ncover.com [exec] Registered to Customer #: 11832 [exec] NCover Enterprise Edition (1 User) [exec] 17 days left in the trial period. [exec] Command: D:\usr\tools\nant-0.85\bin\NAnt.exe [exec] Command Args: "nunit.quick" [exec] Working Directory: D:\servers\CruiseControl.NET\projects\Qualent\Chronos [exec] Assemblies: Chronos.Core;Chronos.Tests [exec] Program Output [exec] Exception [exec] -- Top-level exception (System.IO.IOException) [exec] The specified registry key does not exist. [exec] -- Stack Trace [exec] at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) [exec] at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck, RegistrySecurity registrySecurity) [exec] at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey) [exec] at NCover.Framework.ProfilerDriver._RegisterProcess(String regPath) [exec] at NCover.Framework.ProfilerDriver.Execute() [exec] at NCover.ConsoleMain.ConsoleMain.Main(String[] args)
RE: Stopping Service [WWW Publishing Service] - Fa
Is there some magic logging switch that w could turn on, so you would not have to guess what have happened? ... and the process of getting things working would not take remaining 17 days of our trial time?
RE: Stopping Service [WWW Publishing Service] - Fails
wooyek,
No magic logging option available. The error (essentially an unknown system error) is happening down in the Win32 layer so I couldn't trace it anyway. Chances are the key was deleted or doesn't exist. Check the existence of theseregistry keys:
HKLM\Software\Classes\CLSID{9721F7EB-5F92-447c-9F75-79278052B7BA} HKLM\Software\Classes\CLSID{9721F7EB-5F92-447c-9F75-79278052B7BA}\InprocServer32
and if they don't exist run regsvr32 on NCover.Lib.x86.dll if all else fails, remove the //reg option from the command line
Stephen
RE: Stopping Service [WWW Publishing Service] - Fa
It was OK until I have switched on the //iis option on the command line....
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID{9721F7EB-5F92-447c-9F75-79278052B7BA}] @="CCoverageProfiler Object" "AppID"="{3FB1CC1E-1C17-4a37-9C18-BF3DB8F10E46}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID{9721F7EB-5F92-447c-9F75-79278052B7BA}\InprocServer32] @="D:\usr\tools\NCover-2.1.0\NCover.Lib.x64.dll" "ThreadingModel"="both"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID{9721F7EB-5F92-447c-9F75-79278052B7BA}\ProgID] @="NCover.CoverageProfiler.6"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID{9721F7EB-5F92-447c-9F75-79278052B7BA}\Programmable]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID{9721F7EB-5F92-447c-9F75-79278052B7BA}\TypeLib] @="{3FB1CC1E-1C17-4A37-9C18-BF3DB8F10E46}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID{9721F7EB-5F92-447c-9F75-79278052B7BA}\VersionIndependentProgID] @="NCover.CoverageProfiler"
[echo] D:\usr\tools\NCover-2.1.0-32bit\NCover.Console.exe [echo] "D:\usr\tools\nant-0.85\bin\NAnt.exe" nunit.quick //a Kokp.Core;Kokp.Tests //x D:\servers\CruiseControl.NET\projects\Polkomtel\Kokp/build\Polkomtel-Kokp.Coverage.xml //w D:\servers\CruiseControl.NET\projects\Polkomtel\Kokp //iis [exec] NCover.Console v2.1.0 (Administrator x86) - Code Coverage Analysis for .NET [exec] Copyright (c) 2008 Gnoso Inc. [exec] http://www.ncover.com [exec] Registered to Customer #: 11832 [exec] NCover Enterprise Edition (1 User) [exec] 13 days left in the trial period. [exec] Command: D:\usr\tools\nant-0.85\bin\NAnt.exe [exec] Command Args: "nunit.quick" [exec] Working Directory: D:\servers\CruiseControl.NET\projects\Polkomtel\Kokp [exec] Assemblies: Kokp.Core;Kokp.Tests [exec] Program Output [exec] Stopping Service [World Wide Web Publishing Service]... [exec] Exception [exec] -- Top-level exception (System.NullReferenceException) [exec] Object reference not set to an instance of an object. [exec] -- Stack Trace [exec] at NCover.Framework.StartupProfiledProcess.SynchronousStop() [exec] at NCover.Framework.StartupProfiledProcess.StartService() [exec] at NCover.Framework.StartupProfiledProcess.Start() [exec] at NCover.Framework.ProfilerDriver.Execute() [exec] at NCover.ConsoleMain.ConsoleMain.Main(String[] args)
RE: Stopping Service [WWW Publishing Service] - Fa
When I regsvr32 NCover.Lib.x86.dll and have added //reg option:
[echo] D:\usr\tools\NCover-2.1.0-32bit\NCover.Console.exe [echo] "D:\usr\tools\nant-0.85\bin\NAnt.exe" nunit.quick //a Kokp.Core;Kokp.Tests //x D:\servers\CruiseControl.NET\projects\Polkomtel\Kokp/build\Polkomtel-Kokp.Coverage.xml //w D:\servers\CruiseControl.NET\projects\Polkomtel\Kokp //iis //reg [exec] NCover.Console v2.1.0 (Administrator x86) - Code Coverage Analysis for .NET [exec] Copyright (c) 2008 Gnoso Inc. [exec] http://www.ncover.com [exec] Registered to Customer #: 11832 [exec] NCover Enterprise Edition (1 User) [exec] 13 days left in the trial period. [exec] Command: D:\usr\tools\nant-0.85\bin\NAnt.exe [exec] Command Args: "nunit.quick" [exec] Working Directory: D:\servers\CruiseControl.NET\projects\Polkomtel\Kokp [exec] Assemblies: Kokp.Core;Kokp.Tests [exec] Program Output [exec] Exception [exec] -- Top-level exception (System.IO.IOException) [exec] The specified registry key does not exist. [exec] -- Stack Trace [exec] at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) [exec] at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck, RegistrySecurity registrySecurity) [exec] at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey) [exec] at NCover.Framework.ProfilerDriver._RegisterProcess(String regPath) [exec] at NCover.Framework.ProfilerDriver.Execute() [exec] at NCover.ConsoleMain.ConsoleMain.Main(String[] args)
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID{9721F7EB-5F92-447c-9F75-79278052B7BA}] @="CCoverageProfiler Object" "AppID"="{3FB1CC1E-1C17-4a37-9C18-BF3DB8F10E46}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID{9721F7EB-5F92-447c-9F75-79278052B7BA}\InprocServer32] @="D:\usr\tools\NCover-2.1.0\NCover.Lib.x64.dll" "ThreadingModel"="both"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID{9721F7EB-5F92-447c-9F75-79278052B7BA}\ProgID] @="NCover.CoverageProfiler.6"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID{9721F7EB-5F92-447c-9F75-79278052B7BA}\Programmable]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID{9721F7EB-5F92-447c-9F75-79278052B7BA}\TypeLib] @="{3FB1CC1E-1C17-4A37-9C18-BF3DB8F10E46}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID{9721F7EB-5F92-447c-9F75-79278052B7BA}\VersionIndependentProgID] @="NCover.CoverageProfiler"
Without IIS profiling it works OK... I'm not following/care anymore if reg on or off. The IIS profiling is the feature I need to convince my boss to buy NCover...
I know you told Mariusz to run x86 version, but it doesnt seem right, are you sure I should run x86 version on x64 system?
So what's next?
RE: Stopping Service [WWW Publishing Service] - Fails
wooyek,
I've emailed you a version of NCover that has tracing enabled, along with instructions on what to do with it.
Unless you've specifically told IIS to run as a 32-bit application on win64 or ASP, IIS runs as a 64-bit application and then, yes, you should use the 64-bit version of NCover. Don't use the //reg option anymore, we'll work on the first problem and get it solved.
Stephen
RE: Stopping Service [WWW Publishing Service] - Fails
Any generic help on this issue, we are having this as well. I've updated NUnit binaries and NCover throws the same error as the subject of this post, on a 64-bit machine.
RE: Stopping Service [WWW Publishing Service] - Fails
If your trial time runs out due to this issue, we will send you a new key to extend the trial period.
Thank you,
Joe Feser