Event Log Entries
From: Ken Allen (kendrhyd_at_sympatico.ca)
Date: 04/30/04
- Next message: Jay B. Harlow [MVP - Outlook]: "Re: Newbie: Design Pattern"
- Previous message: Jasper Kent: "Structs"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Jay B. Harlow [MVP - Outlook]: "Re: Newbie: Design Pattern"
- Previous message: Jasper Kent: "Structs"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|