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. Visual Basic
  4. Windows service starting problem

Windows service starting problem

Scheduled Pinned Locked Moved Visual Basic
helpcsharp
3 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.
  • S Offline
    S Offline
    samsonx
    wrote on last edited by
    #1

    Hi, I am new to this vb.net, my problem is i have build the windows service in vb.net c#. I deployed it in my system when i am trying to start that service it showing the error as Error:1053 could not start the service on Local system The service didnot respond to the start ro control request in a timely fashion I cleared Applicaton event log also. I checked in system log. It shows the message as follows 1.Information: The Windows Installer service was successfully sent a start control. 2.Information: The Windows Installer service entered the running state. 3.Information: The Windows Installer service entered the stopped state. 4.Error: Timeout (30000 milliseconds) waiting for the windows service to connect. 5.Error: The Samplepolaris service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion. I have tried to resolve it, but i could not... Please help me to solve this problem. Thanks in advance.

    With Regards, Samson

    P D 2 Replies Last reply
    0
    • S samsonx

      Hi, I am new to this vb.net, my problem is i have build the windows service in vb.net c#. I deployed it in my system when i am trying to start that service it showing the error as Error:1053 could not start the service on Local system The service didnot respond to the start ro control request in a timely fashion I cleared Applicaton event log also. I checked in system log. It shows the message as follows 1.Information: The Windows Installer service was successfully sent a start control. 2.Information: The Windows Installer service entered the running state. 3.Information: The Windows Installer service entered the stopped state. 4.Error: Timeout (30000 milliseconds) waiting for the windows service to connect. 5.Error: The Samplepolaris service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion. I have tried to resolve it, but i could not... Please help me to solve this problem. Thanks in advance.

      With Regards, Samson

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

      Always tough to educated guess without seeing some of the startup code but this could be a permission issue. Perhaps your service logon does not have the necessary privileges on the service computer? If you haven't tried debugging the service yet it is really not difficult and I am sure you can google for info on how to debug a windows service.

      1 Reply Last reply
      0
      • S samsonx

        Hi, I am new to this vb.net, my problem is i have build the windows service in vb.net c#. I deployed it in my system when i am trying to start that service it showing the error as Error:1053 could not start the service on Local system The service didnot respond to the start ro control request in a timely fashion I cleared Applicaton event log also. I checked in system log. It shows the message as follows 1.Information: The Windows Installer service was successfully sent a start control. 2.Information: The Windows Installer service entered the running state. 3.Information: The Windows Installer service entered the stopped state. 4.Error: Timeout (30000 milliseconds) waiting for the windows service to connect. 5.Error: The Samplepolaris service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion. I have tried to resolve it, but i could not... Please help me to solve this problem. Thanks in advance.

        With Regards, Samson

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        From the description, it sounds like you put all of your work code into the OnStart method, never letting it return. This is why the Service Controller threw up the timeout error. When a service starts, it's expected to setup a seperate thread that does the actual work. Once the thread is setup and started, your OnStart code can return control back to the Service Controller by just getting to the End Sub statement.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        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