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 / C++ / MFC
  4. windows services and windows 2008

windows services and windows 2008

Scheduled Pinned Locked Moved C / C++ / MFC
help
6 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.
  • V Offline
    V Offline
    vikramlinux
    wrote on last edited by
    #1

    Hi Friends, I have an application which runs as a service. It works fine with "Local system account" as well as with any specific account. This is for windows 2003. For windows 2008 (32 and 64 bit) my service runs correctly only when it is running with specific user account. But fails in case of "local system account". Also it gives me following error message - "error 1053: The service did not respond to the start or control request in timely fashion". I tried following things - turning off "Data Execution prevention(DEP)" - increased "ServicesPipeTimeout" to 60 seconds but still with "local system account" my service does not start at all. - Vikram S

    D S 2 Replies Last reply
    0
    • V vikramlinux

      Hi Friends, I have an application which runs as a service. It works fine with "Local system account" as well as with any specific account. This is for windows 2003. For windows 2008 (32 and 64 bit) my service runs correctly only when it is running with specific user account. But fails in case of "local system account". Also it gives me following error message - "error 1053: The service did not respond to the start or control request in timely fashion". I tried following things - turning off "Data Execution prevention(DEP)" - increased "ServicesPipeTimeout" to 60 seconds but still with "local system account" my service does not start at all. - Vikram S

      D Offline
      D Offline
      daniel_zy
      wrote on last edited by
      #2

      Did the the service process start at all (You can check it using process monitor)

      V 1 Reply Last reply
      0
      • V vikramlinux

        Hi Friends, I have an application which runs as a service. It works fine with "Local system account" as well as with any specific account. This is for windows 2003. For windows 2008 (32 and 64 bit) my service runs correctly only when it is running with specific user account. But fails in case of "local system account". Also it gives me following error message - "error 1053: The service did not respond to the start or control request in timely fashion". I tried following things - turning off "Data Execution prevention(DEP)" - increased "ServicesPipeTimeout" to 60 seconds but still with "local system account" my service does not start at all. - Vikram S

        S Offline
        S Offline
        Stuart Dootson
        wrote on last edited by
        #3

        I suspect you're trying to do something in your service initialisation that's now disallowed under Windows Server 2008. I would suggest you debug the service initialisation when running under Windows Server 2008 and see what fails? This page[^] may help you.

        1 Reply Last reply
        0
        • D daniel_zy

          Did the the service process start at all (You can check it using process monitor)

          V Offline
          V Offline
          vikramlinux
          wrote on last edited by
          #4

          Using process monitor I can see the process is created. But when I try to debug using - some "OutputDebugString" code inside main function - or __asm int3; nothing happens. Even if my service is allowed to interact with desktop. - Vikram S

          D 1 Reply Last reply
          0
          • V vikramlinux

            Using process monitor I can see the process is created. But when I try to debug using - some "OutputDebugString" code inside main function - or __asm int3; nothing happens. Even if my service is allowed to interact with desktop. - Vikram S

            D Offline
            D Offline
            daniel_zy
            wrote on last edited by
            #5

            1. Output debug string does not work from service on 2008 (shared object) 2. Windows probably catch your _asm int 3. 1. Look at the event log. 2. Add log to file.

            V 1 Reply Last reply
            0
            • D daniel_zy

              1. Output debug string does not work from service on 2008 (shared object) 2. Windows probably catch your _asm int 3. 1. Look at the event log. 2. Add log to file.

              V Offline
              V Offline
              vikramlinux
              wrote on last edited by
              #6

              I tried logging into the file. but I saw this - process is created - no file logs are generated this file should be created when "main" method of my binary is called.

              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