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. VB.Net Windows Service problem

VB.Net Windows Service problem

Scheduled Pinned Locked Moved Visual Basic
helpcsharpquestion
1 Posts 1 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.
  • G Offline
    G Offline
    Gosta Eriksson
    wrote on last edited by
    #1

    Hello, I've written a service that is using serial communication and ADO. It is installed on about 20 different computers, and works mostly very well. In some cases I found a problem. The service is automatically started and is normally working OK at reboot. On these problem computers it does not start, says error "cannot be started, Could not connect to the Service Controller" and in the event log I get event ID 7000 and 7009. When I start manually from SCM it fails the first time, and works the second time after a second or two. This is every time!!! Now I had made an extra service with only one task: make sure the main service is running, checking every minute. With this I thought I could work around the problem. But not!!! Now at reboot it first fails to start the "Pilot service" and succeed to start the main service! This is like 2 tries and fail first and succeed second time... I have checked the computer at energy saving and so on, nothing is at sleep any time... Anybody recognize this behaviour? Please let me know before I go nuts... :confused: Gösta Eriksson

    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