Event Log Entries

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Ken Allen (kendrhyd_at_sympatico.ca)
Date: 04/30/04


Date: Fri, 30 Apr 2004 08:26:02 -0400

I have some experience with the use of the Event Log with older
applications, and even writing kernel components, where we create our custom
MSG file for the messages associated with the Event Log entries created by
our applications written in C++ 6 and earlier.

The .Net environment certainly makes it easier to deal with the creation and
even the parsing of the entries in the various Event Logs, but I can find no
references specific to .Net (C#) assemblies that wish to create entries in
the Application Event Log and have the contents properly interpreted and
displayed by the Event Viewer. When I use the standard examples described in
MSDN the Event Viewer displays the common "The description for Event ID (0)
in Source (MyTestService) cannot be found. The local computer may not have
the necessary registry information or message DLL files to display messages
from a remote computer. You may be able to use the /AUXSOURCE = flag to
retrieve this description; see Help and Support for details. The following
information is part of the event: This is a test entry written by
MyTestService.

With C++ 6 we simply created the MSG file and had the results compile into a
resource file that was embedded in the executable image, and then the
registry was updated to reference the executable as the source of the
messages. Is there a way to do this with .Net? Or must I create a separate
resource DLL directly from the MSG file (only one entry at this time) for
each service?

-Ken



Relevant Pages

  • RE: Event Log entries?
    ... The server is a W2K web server with OWA 5.5. ... The workstation that was identified in the event log ... >| Subject: Event Log entries? ... >| Username: domain\computername$ ...
    (microsoft.public.win2000.security)
  • Re: Max number of items in a listbox?
    ... >> ListBox as sort of an event log. ... >> limiting the number of entries that can accumulate in this listbox ... >Sub AddLogEntry ...
    (microsoft.public.vb.general.discussion)
  • Re: I cant install any Nortons Software
    ... thing and disabled the firewall. ... I get MSIInstaller errors in the Event Log ... > antispyware applications and passive immunizations from those applications ... > Cleaned with any antispyware products or scanned with any online-AV ...
    (microsoft.public.security)
  • Event Viewer
    ... Yes, I have asked on this group about specific Event Log entries in the past, and yes, you have been forthcoming with helpful guidance. ... I attempt to determine why Windows Defender is saying there is possibly a problem with my system. ... Microsoft recommends you analyze the software that made these changes for potential risks. ...
    (microsoft.public.windowsxp.general)
  • NtpServer encountered an error
    ... So, I went and looked in the event log, and in the System log, I found ... "The time provider NtpServer encountered an error while digitally ... The specified user does not exist. ... There are 2000+ entries in here, ...
    (microsoft.public.windows.server.active_directory)