Windows Service

Windows Service

useing NCover to cover Web Service error Service Name: http://localhost:1240/WebServiceBack Working folder:D:\dotNetSrcForNCover\WebService(ASP.net)\PrecompiledWeb\WebServiceBack

Click the Run(F5) button, there is error message. But I'm sure IIS is normal, and on IE Web Service can display.Can you help me?

error messagge: Program Output End Program Output Stopping Service [http://localhost:1240/WebServiceBack]

-- Top-level exception (NCover.Framework.ProfilerRuntimeException) The IIS Service could not be located. Ensure that IIS is installed. -- Stack Trace 場所 NCover.Framework.ProfilerDriver.ExecuteProfiler() 場所 NCover.Framework.ProfilerDriver.Run() 場所 NCover.ConsoleMain.ConsoleMain.Main(String[] args)

The profiled program returned 20000


RE: Windows Service

what version of Windows are you running? Just to be sure that IIS is installed on your machine, could you check the following? Open Control Panel, then Administrative Tools, then Services, and confirm that the "World Wide Web Publishing" service appears in that list.

Stephen


RE: Windows Service

Thanks for your reply. My version of Windows is Windows Xp Professional. I'm sure that IIS is installed on my machine, because my web site on the IIS can really running successfully. And the "World Wide Web Publishing" service is running on my machine. By the way, my IIS's Default Web Site's TCP port is 1240. Help me, please.


RE: Windows Service

what command line are you running NCover with? (you can get the command line by looking at the "Command Line" pane on the NCover Run dialog in NCoverExplorer)

Stephen


RE: Windows Service

try selecting the "IIS Website" option on the NCoverExplorer profile run dialog.


RE: Windows Service

My command line is: "C:\Program Files\NCover\NCover.Console.exe" //reg //w "D:\dotNetSrcForNCover\WebService(ASP.net)\PrecompiledWeb\WebServiceBack" //x "D:\NCover\WebService\Coverage.xml" //l "D:\NCover\WebService\Coverage.log" //p "WebService" //h "D:\NCover\WebService\report1" //svc "http://localhost:1240/WebServiceBack" and I'm also selected the "IIS Website" option on the NCoverExplorer profile run dialog, of course. It's always the same error.


RE: Windows Service

try the following command line

"C:\Program Files\NCover\NCover.Console.exe" //reg //w "D:\dotNetSrcForNCover\WebService(ASP.net)\PrecompiledWeb\WebServiceBack" //x "D:\NCover\WebService\Coverage.xml" //l "D:\NCover\WebService\Coverage.log" //h "D:\NCover\WebService\report1" //iis