Hi,
I use the following way to write to the Windows Event Log from my C#
application.
EventLog eventLog = new EventLog();
eventLog.Source = "My Source";
eventLog.WriteEntry("Just a test:",EventLogEntryType.Error);
Initially i was using 1.0 framework with VS 2002. It wrote "Just a test" to
the event log. Now I updated to 1.1 framework and VS2003. Now it writes:
"The description for Event ID ( 0 ) in Source ( ServiceName ) cannot be
found. The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. The following
information is part of the event. Just a test"
What can i do to suppress the additional information that is appended with
my message. I just want to display my own message. Thanx in advance.