Welcome, Guest!

Stopping Service [WWW Publishing Service] - Fails

Stopping Service [WWW Publishing Service] - Fails

by wooyek on Thursday June 05, 2008, 01:04 PM

[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* , _s__ThrowInfo* )
[exec] at ShMemReader.GetMemoryPointer(ShMemReader* , UInt32 addr)
[exec] at ShMemLinkedList<moduleinfo>.getHeadNode(ShMemLinkedList<moduleinfo>* , ShMemReader* rdr)
[exec] at ShMemLinkedList<moduleinfo>.count(ShMemLinkedList<moduleinfo>* , ShMemReader* rdr)
[exec] at NCover.Data.MwShMemLinkedList<ncover::interfaces::imoduleinfo>.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

by sporewell on Thursday June 05, 2008, 03:28 PM

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

by qualent on Friday June 06, 2008, 03:39 AM

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* , _s__ThrowInfo* )
[exec] at ShMemReader.GetMemoryPointer(ShMemReader* , UInt32 addr)
[exec] at ShMemLinkedList<moduleinfo>.getHeadNode(ShMemLinkedList<moduleinfo>* , ShMemReader* rdr)
[exec] at ShMemLinkedList<moduleinfo>.count(ShMemLinkedList<moduleinfo>* , ShMemReader* rdr)
[exec] at NCover.Data.MwShMemLinkedList<ncover::interfaces::imoduleinfo>.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

by wooyek on Friday June 06, 2008, 07:38 AM

Do you need some other info to resolve the issue?

RE: Stopping Service [WWW Publishing Service] - Fa

by wooyek on Friday June 06, 2008, 07:53 AM

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* , _s__ThrowInfo* )
[exec] at ShMemReader.GetMemoryPointer(ShMemReader* , UInt32 addr)
[exec] at ShMemLinkedList<moduleinfo>.getHeadNode(ShMemLinkedList<moduleinfo>* , ShMemReader* rdr)
[exec] at ShMemLinkedList<moduleinfo>.count(ShMemLinkedList<moduleinfo>* , ShMemReader* rdr)
[exec] at NCover.Data.MwShMemLinkedList<ncover::interfaces::imoduleinfo>.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

by sporewell on Friday June 06, 2008, 12:40 PM

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

by wooyek on Monday June 09, 2008, 02:57 AM

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

by sporewell on Monday June 09, 2008, 05:29 AM

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

by qualent on Tuesday June 10, 2008, 03:32 AM

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

by sporewell on Tuesday June 10, 2008, 08:44 AM

I've emailed you an updated version of NCover that should fix this bug.

Stephen

RE: Stopping Service [WWW Publishing Service] - Fa

by qualent on Thursday June 12, 2008, 01:03 AM

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

by sporewell on Thursday June 12, 2008, 08:52 AM

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

by wooyek on Thursday June 12, 2008, 10:56 AM

1. Yes (but it should not)
2. Yes (but it should not ;)
3. en

W2K3 R2 x64 SP2

RE: Stopping Service [WWW Publishing Service] - Fa

by wooyek on Thursday June 12, 2008, 10:58 AM

[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

by wooyek on Thursday June 12, 2008, 11:13 AM

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?