EventLogger and XP question!

  • Thread starter Thread starter Evgeny
  • Start date Start date
Evgeny said:
When my application writes to event log the XP (it occurred only on XP
machine!) adds to my message not expected additional info:

For more information, see Help and Support Center at
<http://go.microsoft.com/fwlink/events.asp>

In short (i.e. approximately and in my words), the architecture of the event
logging mechanism aims to minimize the size of the log file. To that end
applications should create "message files" with the message compiler that
contain static strings for error message text, error category and error
severity. The application then logs only the "dynamic" information
associated with a message and "integer indexes" into the message files for
the static portions of the message. At run time, an administrator uses the
event viewer which builds a message _on the fly_ from the "static" message
files and the "dynamic" information in the event log.

Prior to XP, if you didn't use a message file, the event viewer displayed
only the dynamic text. On XP, the viewer announces to the world that a
developer took a shortcut. It is embarassing and it scares end-users. I
know. :-(
How could i prevent it?

Use a message file. This link describes the event log in detail:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/
event_logging_functions.asp

Jeffery Richter in his book "Programming Server Side Applications for
Microsoft Windows 2000" devotes an entire chapter to the event log and (I
think) includes some sample code on the book's CD to get you started.

Regards,
Will
 
Thanks. I'm familiar with this technics and i didn't ask about this header
message:

"The description for Event ID ( 512 ) in Source ( MySource ) 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: My Message"

But my question about other problem.

XP machine append to every message follow strings:
"For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp"
Our customers will not expect to see link to Microsoft....

Thanks,
Evgeny
 
Evgeny said:

You are welcome.
I'm familiar with this technics and i didn't ask about this header
message:

"The description for Event ID ( 512 ) in Source ( MySource ) 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: My Message"

But my question about other problem.

XP machine append to every message follow strings:
"For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp"
Our customers will not expect to see link to Microsoft....

I think that this is a misguided attempt at offering help to address the
"problem", perhaps because core operating system services use the event log.

If what you logged, the message files and the registry entries are all
proper and if you see that message then that seems to me to be a bug. You
might want to post follow-up questions in the kernel group.

Regards,
Will
 
May by should I build my resource file (like in not .NET applications) and
don't use system file
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\EventLogMessages.dll?

Thanks in advance.
And sorry if my questions passed to the wrong group.
 
Back
Top