Trouble extending event log messages

Posted by Matt H on Stack Overflow See other posts from Stack Overflow or by Matt H
Published on 2009-12-06T21:27:07Z Indexed on 2010/03/20 20:11 UTC
Read the original article Hit count: 316

Filed under:
|

Hi.

I'm trying to add some extended error codes to the event log but I get the following error.

The description for Event ID ( 109 ) in Source ( PumpServer ) 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: The event log file is corrupt..

The message file looks like this and I added the one on the end:-

<---snip--->

MessageId=
SymbolicName=EVMSG_BADREQUEST
Language=English
The service received an unsupported request.
.

MessageId=
SymbolicName=EVMSG_DEBUG
Language=English
%1
.

MessageId=
SymbolicName=EVMSG_STOPPED
Language=English
The service was stopped.
.

MessageId=
SymbolicName=EVMSG_INVALIDLICENCE
Language=English
The service does not have a valid licence. Initialization failed.
.

It compiles fine. The mc program is running over this file and producing a header file of the same name with my new message id showing.

//
// MessageId: EVMSG_INVALIDLICENCE
//
// MessageText:
//
// The service does not have a valid licence. Initialization failed.
//
#define EVMSG_INVALIDLICENCE             0x0000006DL

Any ideas why it's not finding my message? All the others work.

© Stack Overflow or respective owner

Related posts about eventlog

  • deleting eventlog

    as seen on Stack Overflow - Search for 'Stack Overflow'
    Hey, How can I delete a specific eventlog entry (say id 130 with source: Myprog) or delete all eventlogs from a specific source without deleting the whole eventlogs under "Application" folder? public static void deleteEvent() { string logName; if (EventLog.SourceExists(SOURCE)) … >>> More

  • Reading EventLog C# Errors

    as seen on Stack Overflow - Search for 'Stack Overflow'
    I have this code in my ASP.NET application written in C# that is trying to read the eventlog, but it returns an error. EventLog aLog = new EventLog(); aLog.Log = "Application"; aLog.MachineName = "."; // Local machine foreach (EventLogEntry entry in aLog.Entries) { if (entry.Source.Equals("tvNZB")) … >>> More

  • get-eventlog issue

    as seen on Server Fault - Search for 'Server Fault'
    I wanted to get a quick report of some log entries I saw on a server, so I ran: Get-Eventlog -logname system -newest 10 -computer fs1 | fl I got events back however the descriptions were all wrong. Here's an example: Index : 1260055 EntryType : Warning InstanceId : 2186936367 Message : The… >>> More

  • Access to Windows 7 log from a remote machine

    as seen on Super User - Search for 'Super User'
    I'm trying to access with EventViewer (from a Windows XP Prof) to a remote machine with Windows 7 (Seven). Before I started the Service "RemoteRegistry" I received an "Access Denied". After started the service I can connet to the machine Log (in EventViewer app) but when i clik on any log as "Application"… >>> More

  • logparser not matching on a LIKE pattern

    as seen on Stack Overflow - Search for 'Stack Overflow'
    Hi I seem to have the strangest problem. I am using logparser to search an event log for some text that I know is there (i copied and pasted the string from the event into the sql search string). But the sql LIKE statement is returning a empty results. But other LIKE statments seem to be working file… >>> More

Related posts about windows-xp