How do I give my c# app access to eventlog?
-
Hi, I am new to writing windows services with c#. I wrote a windows service that writes to the event log using this code EventLog.WriteEntry(ServiceName + " Service started"); Whenever my service starts it stops stating that it failed due to not having permissions to write to the event log. How can I make sure my windows service has the proper permissions to write the Event Log? Thanks, Greg
-
Hi, I am new to writing windows services with c#. I wrote a windows service that writes to the event log using this code EventLog.WriteEntry(ServiceName + " Service started"); Whenever my service starts it stops stating that it failed due to not having permissions to write to the event log. How can I make sure my windows service has the proper permissions to write the Event Log? Thanks, Greg
-
They hide that information in the documentation[^]
Well I don't see anything in there that explains why this code works with no problems on my windows vista, windows xp, and windows 2000 machines when run with administrator priviledges, but not on my windows server 2003 box with admin privilges. I guess they left that part out. :\
-
Well I don't see anything in there that explains why this code works with no problems on my windows vista, windows xp, and windows 2000 machines when run with administrator priviledges, but not on my windows server 2003 box with admin privilges. I guess they left that part out. :\