Windows Service Running on a Server


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Windows Service Running on a Server

  1. #1
    Stephen Guest

    Windows Service Running on a Server


    Hi all,
    The basis of my services is to act as a host for a small message ring on
    a network.
    Currently i have a working service that i wish to run on a Server. After
    installing this service on the server i find that a person needs to be logged
    into the server for the windows service to run. This is not my desire. I
    wish this service to run all the time.

    Can anyone help?

  2. #2
    Michael Gautier Guest

    Re: Windows Service Running on a Server

    You need to compile an Installer class (a class derived from
    System.Configuration.Install.Installer) with your windows service project.

    This installer will have components where you can specify that the service
    runs as localsystem (that way logons are not required) and the startup is
    automatic (it starts when then machine boots into windows).

    The best guide is the Visual Studio .NET documentation on setup and
    deployment of windows services. They have a step by step guide for setting
    them up properly.

    I would have more info, but this mostly from memory. A year ago when I first
    started building windows services, I followed the step by step guide
    (windows services are not as straight forward as other .NET application
    types) for building and deploying the services and never went wrong.




    "Stephen" <stephen@businesscraft.com> wrote in message
    news:3dbf0ddb$1@tnews.web.devx.com...
    >
    > Hi all,
    > The basis of my services is to act as a host for a small message ring on
    > a network.
    > Currently i have a working service that i wish to run on a Server. After
    > installing this service on the server i find that a person needs to be

    logged
    > into the server for the windows service to run. This is not my desire. I
    > wish this service to run all the time.
    >
    > Can anyone help?




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center