Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Problem Starting Windows Service Automatically

Problem Starting Windows Service Automatically

Scheduled Pinned Locked Moved C#
help
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    karthi84
    wrote on last edited by
    #1

    hi, i am new to windows services and i have created a windows service which works fine when i manually start and stop it. i have changed the property to start the service automatically. and i need the service to start at the time of machine logging in. but the service is not starting. help me with fixing this issue. and this service is not related to any software. what it does is when the service is started is saves a string to the event viewer. but its not automatically started even if its property is set to start automatically.

    P D 2 Replies Last reply
    0
    • K karthi84

      hi, i am new to windows services and i have created a windows service which works fine when i manually start and stop it. i have changed the property to start the service automatically. and i need the service to start at the time of machine logging in. but the service is not starting. help me with fixing this issue. and this service is not related to any software. what it does is when the service is started is saves a string to the event viewer. but its not automatically started even if its property is set to start automatically.

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      karthi84 wrote:

      at the time of machine logging in

      The Service will start when the Operating System starts, not when a user logs in. You could use a Scheduled Task to do that. Especially if the "Service" writes and then exits, that's not what services are for. Services normally start when the system starts, and run continuously until the system shuts down.

      K 1 Reply Last reply
      0
      • K karthi84

        hi, i am new to windows services and i have created a windows service which works fine when i manually start and stop it. i have changed the property to start the service automatically. and i need the service to start at the time of machine logging in. but the service is not starting. help me with fixing this issue. and this service is not related to any software. what it does is when the service is started is saves a string to the event viewer. but its not automatically started even if its property is set to start automatically.

        D Offline
        D Offline
        DaveyM69
        wrote on last edited by
        #3

        Are you running on Vista?

        Dave

        K 1 Reply Last reply
        0
        • P PIEBALDconsult

          karthi84 wrote:

          at the time of machine logging in

          The Service will start when the Operating System starts, not when a user logs in. You could use a Scheduled Task to do that. Especially if the "Service" writes and then exits, that's not what services are for. Services normally start when the system starts, and run continuously until the system shuts down.

          K Offline
          K Offline
          karthi84
          wrote on last edited by
          #4

          thanks for the reply. my problem is fixed. the problem was it was depending on a service which starts after this service starts. so i have fixed with this issue and once again thanks for your answer.

          1 Reply Last reply
          0
          • D DaveyM69

            Are you running on Vista?

            Dave

            K Offline
            K Offline
            karthi84
            wrote on last edited by
            #5

            thanks for your time for replying me. my problem is fixed. the problem was it was depending on a service which starts after this service starts. so i have fixed with this issue and once again thanks for your answer.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups