Results 1 to 2 of 2

Thread: help needed while creating Windows Service in .net 2.0

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2003
    Location
    india
    Posts
    273

    help needed while creating Windows Service in .net 2.0

    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
    Last edited by PPCC; Feb 8th, 2010 at 06:21 AM.

  2. #2
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: help needed while creating Windows Service in .net 2.0

    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
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width