Anshu nautiyal

Hi

I have created a window service and able to start it successfully .

but when i am creating a schduler task for this, m getting following errror

Cannot start service form command line debugger. A window service must first installed and then started with the server explorer, windows administrative tool or the NET start command.

How do i resolve this

Thanks




Re: Visual Studio Setup and Installation Error while schudeling windows service

Gabriel Lozano-Moran

Like the error message states, you cannot start a Windows Service as a program, what you can do is register the Windows Service and have a scheduled task start and/or stop the Windows Service.

What are you trying to do exactly






Re: Visual Studio Setup and Installation Error while schudeling windows service

Anshu nautiyal

Thanks for ur response.

But i m able to run my installed window service. In side task schduler we need to specify the command NET START <name of service>.

Now its working fine with this.

Thanks,






Re: Visual Studio Setup and Installation Error while schudeling windows service

Gabriel Lozano-Moran

On a sidenote: I find it odd to start services using scheduled tasks but I guess you have your reasons in doing so.