PDA

Click to See Complete Forum and Search --> : help needed while creating Windows Service in .net 2.0


PPCC
Feb 8th, 2010, 04:34 AM
Dear All,
I have created Windows services, Framework 2.0, Upon Build of this services, I am getting below message.

Windows Service Start Failure

Cannot start service from the command line or a debugger. A Windows Service must first be installed (using installutil.exe) and then started with the ServerExplorer, Windows Services Administrative tool or the NET START command.

Can anyone help me, what step I had missed?
Please help,

Regards,
PPCC

chris128
Feb 24th, 2010, 05:16 PM
Well it is telling you exactly what you need to do - use the installutil.exe file (which comes with the .NET framework) to install your service once you have built it. When you build a new version that you want to test you just use installutil.exe with a different command line parameter to uninstall the service and then you can install the updated version and test it