In my C# application I am using the EventLog class to log messages. It works perfectly fine on my machine, but doesn't work on a client machine.
The client machine configuration is different than my machine. My machine has Vista OS, whereas the client has Windows Server 2003.
I have admin rights on my machine whereas on the client machine my application runs under non-admin user privileges.
On the client machine I get an error:
Faulting application <app_name>, version ,faulting module kernel32.dll
My application stopped crashing on the client machine when I commented out EventLog.WriteEntry() method calls and started to write logs into a simple text file.
So I was just wondering whether event logging needs administrator privileges or what?
Environment detail : C# (.NET 2.0 Framework), on Windows Server 2003