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