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
  1. Home
  2. General Programming
  3. C#
  4. Window Service Error

Window Service Error

Scheduled Pinned Locked Moved C#
help
3 Posts 2 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.
  • R Offline
    R Offline
    ramdil
    wrote on last edited by
    #1

    Hi all I have created a window service which just starts a thread on its start method.it was working fine.Now when i stopped the service and just restart the service without any changes i am getting an error "could not restart the service The service didnot respond to the start or control request in a timely fashion" Why is it so.Can any one pls help me Thanks in advance

    Regards DilipRam

    N 1 Reply Last reply
    0
    • R ramdil

      Hi all I have created a window service which just starts a thread on its start method.it was working fine.Now when i stopped the service and just restart the service without any changes i am getting an error "could not restart the service The service didnot respond to the start or control request in a timely fashion" Why is it so.Can any one pls help me Thanks in advance

      Regards DilipRam

      N Offline
      N Offline
      Nissim Salomon
      wrote on last edited by
      #2

      Hi I an only guess that something bad happen in your OnStart method After you stop the service and restart it. Use try catch block in order to process any exception thrown, And log the error message to the event log in order to track down the bug.

      R 1 Reply Last reply
      0
      • N Nissim Salomon

        Hi I an only guess that something bad happen in your OnStart method After you stop the service and restart it. Use try catch block in order to process any exception thrown, And log the error message to the event log in order to track down the bug.

        R Offline
        R Offline
        ramdil
        wrote on last edited by
        #3

        Thanks for the reply

        Regards DilipRam

        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