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

Windows Service

Scheduled Pinned Locked Moved Visual Basic
helpcsharpsysadminsecurity
4 Posts 4 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.
  • A Offline
    A Offline
    Archimedes24
    wrote on last edited by
    #1

    Hi, We have a Windows Service, written in VB.NET. This service is set to start Automatically on machine start. Authentication/log on parameters are included while setting the Service. However, we now notice that the service does not start on reboot, returning a Service Failed to log on error. Starting the service manually works without problem. Server: Win 2003, .NET 2.0 Any help towards a solution would be most appreciated. Regards, RB

    T S D 3 Replies Last reply
    0
    • A Archimedes24

      Hi, We have a Windows Service, written in VB.NET. This service is set to start Automatically on machine start. Authentication/log on parameters are included while setting the Service. However, we now notice that the service does not start on reboot, returning a Service Failed to log on error. Starting the service manually works without problem. Server: Win 2003, .NET 2.0 Any help towards a solution would be most appreciated. Regards, RB

      T Offline
      T Offline
      tosch
      wrote on last edited by
      #2

      Write any errors that may occur during startup of the service to the eventlog. Maybe a network connection isn't ready or something similar.

      Tosch

      1 Reply Last reply
      0
      • A Archimedes24

        Hi, We have a Windows Service, written in VB.NET. This service is set to start Automatically on machine start. Authentication/log on parameters are included while setting the Service. However, we now notice that the service does not start on reboot, returning a Service Failed to log on error. Starting the service manually works without problem. Server: Win 2003, .NET 2.0 Any help towards a solution would be most appreciated. Regards, RB

        S Offline
        S Offline
        Steven J Jowett
        wrote on last edited by
        #3

        Have you tried setting the service to retry it's startup if it fails? You can set it to retry after so many minutes after the 1st and 2nd failed attempts.

        Steve Jowett ------------------------- Real programmers don't comment their code. If it was hard to write, it should be hard to read.

        1 Reply Last reply
        0
        • A Archimedes24

          Hi, We have a Windows Service, written in VB.NET. This service is set to start Automatically on machine start. Authentication/log on parameters are included while setting the Service. However, we now notice that the service does not start on reboot, returning a Service Failed to log on error. Starting the service manually works without problem. Server: Win 2003, .NET 2.0 Any help towards a solution would be most appreciated. Regards, RB

          D Offline
          D Offline
          darkelv
          wrote on last edited by
          #4

          You may have some other services or resources on the system that are not ready when the Windows service is started, for example SQL server usually will usually not be ready when your Windows service started. You should trap the exception to debug what is causing the failure, ie using AppDomain.CurrentDomain.UnhandledException or Application.ThreadException (can't remember which one for services, don't have the code with me now).

          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