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#
  4. Problem in Windows Service

Problem in Windows Service

Scheduled Pinned Locked Moved C#
helpcomsecuritytoolsquestion
2 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.
  • N Offline
    N Offline
    nagendrathecoder
    wrote on last edited by
    #1

    Hi all, I am refering this[^] article of CodeProject for learning about Windows Services. Everything went right, but when i tried to Start the service from Services option of Administrative Tools, it is showing me following error: "The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security." on this line of code

    if (!System.Diagnostics.EventLog.SourceExists("SimpleSource"))

    Service is not starting. Can anybody tell my why this is happening? Thanks, Nagendra.

    realJSOPR 1 Reply Last reply
    0
    • N nagendrathecoder

      Hi all, I am refering this[^] article of CodeProject for learning about Windows Services. Everything went right, but when i tried to Start the service from Services option of Administrative Tools, it is showing me following error: "The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security." on this line of code

      if (!System.Diagnostics.EventLog.SourceExists("SimpleSource"))

      Service is not starting. Can anybody tell my why this is happening? Thanks, Nagendra.

      realJSOPR Offline
      realJSOPR Offline
      realJSOP
      wrote on last edited by
      #2

      Maybe it has to do with the user account you installed the service under.

      .45 ACP - because shooting twice is just silly
      -----
      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
      -----
      "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

      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