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. Windows Service doesn't make event logs on Windows Server 2003 due to insufficient rights

Windows Service doesn't make event logs on Windows Server 2003 due to insufficient rights

Scheduled Pinned Locked Moved C#
phpcomsysadminwindows-adminhelp
4 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
    Rocky
    wrote on last edited by
    #1

    Hi everyone, I have a Windows service that I made on my PC here which has Win XP pro on it and it creates some event logs. It runs fine here but now when I'm trying to deploy it on Staging environment where we have Windows Server 2003, it just doesn't run cause it need the administrative rights for it. Can any one tell me how to tackle this situation. Is there a way to impersonate the Windows Service or anything else? Any help would be greatly appreciated. Regards,

    Rocky My Blog

    L 1 Reply Last reply
    0
    • R Rocky

      Hi everyone, I have a Windows service that I made on my PC here which has Win XP pro on it and it creates some event logs. It runs fine here but now when I'm trying to deploy it on Staging environment where we have Windows Server 2003, it just doesn't run cause it need the administrative rights for it. Can any one tell me how to tackle this situation. Is there a way to impersonate the Windows Service or anything else? Any help would be greatly appreciated. Regards,

      Rocky My Blog

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Open the configuration screen, and go to the administrative tools. From there, open the "Services" MSC. Find your service in the list, rightclick it and select "Properties". The second tabpage (called Log On) lets you specify the user-account under which the service should run. Good luck :)

      I are troll :)

      R 1 Reply Last reply
      0
      • L Lost User

        Open the configuration screen, and go to the administrative tools. From there, open the "Services" MSC. Find your service in the list, rightclick it and select "Properties". The second tabpage (called Log On) lets you specify the user-account under which the service should run. Good luck :)

        I are troll :)

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

        ahh!! Thanks man, that was beautiful. :rose::thumbsup:

        Rocky My Blog

        L 1 Reply Last reply
        0
        • R Rocky

          ahh!! Thanks man, that was beautiful. :rose::thumbsup:

          Rocky My Blog

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          You're welcome, and thanks for the kind words :-D

          I are troll :)

          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