473,322 Members | 1,540 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

EventID and EventSource Problems

Hi guys,

I have an application that handle errors and log it at windows event log.
When we are logging events, we are changing the application source to use
our custom source (ex: MyApp) or maintaing "Application" source.

And to do it, we have to write a project installer that registers
necessaries keys at windows registry. Until now, everything is all right.

But we've customized our event IDs too. So thats the problem. When we look
events w/ event viewer, we've gotten messages like this:

The description for Event ID ( 31999 ) in Source ( Application ) 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: Log
Type: 'ExcLog';

So, how can I create a Event ID for Event Source ?
Thanks in advanced.

best,
wellington.

Feb 23 '06 #1
2 2144
Hi Wellington.
So, how can I create a Event ID for Event Source ?


Have you created and registered the corresponding Message file for your
custom event source?

If not, you may need to provide it--Message files are text files that
contain information about the various messages and categories that
applications want to support. These text files are then compiled as
resource DLLs. You can define your own Event ID and its description in the
message definition file, then use MC.exe to build it into a Message file,
and register it as well as your event source. Please refer to the following
article for the details:

Getting the most out of Event Viewer
http://www.codeproject.com/dotnet/ev...sp#xx1338258xx

Thanks!

Best regards,

Gary Chang
Microsoft Community Support
================================================== ====
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006. Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
================================================== ====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from this issue.
================================================== ====
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== ====

Feb 24 '06 #2
Hi Gary,

Thank you for your reply. Its must be very usefull.

Best,
Wellington.

""Gary Chang[MSFT]"" wrote:
Hi Wellington.
So, how can I create a Event ID for Event Source ?


Have you created and registered the corresponding Message file for your
custom event source?

If not, you may need to provide it--Message files are text files that
contain information about the various messages and categories that
applications want to support. These text files are then compiled as
resource DLLs. You can define your own Event ID and its description in the
message definition file, then use MC.exe to build it into a Message file,
and register it as well as your event source. Please refer to the following
article for the details:

Getting the most out of Event Viewer
http://www.codeproject.com/dotnet/ev...sp#xx1338258xx

Thanks!

Best regards,

Gary Chang
Microsoft Community Support
================================================== ====
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006. Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
================================================== ====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from this issue.
================================================== ====
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== ====

Mar 2 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Jim Hubbard | last post by:
Are you up to speed on the difficulties in using the 1.1 .Net framework? Not if you are unaware of the 1,596 issues listed at KBAlertz (http://www.kbalertz.com/technology_3.aspx). If you are...
0
by: Frank | last post by:
I want to use the category and the EventID parameters in the WriteEntry of the EventLog. How do you define the EventID and Category? I am using VB.NET 2003 THanks!
5
by: Corky | last post by:
This works: db2 SELECT DISTINCT PROBLEM_OBJECTS.PROBLEM_ID FROM PROBLEM_OBJECTS INNER JOIN PROBLEMS ON PROBLEM_OBJECTS.PROBLEM_ID = PROBLEMS.PROBLEM_ID WHERE INTEGER(DAYS(CURRENT DATE) -...
1
by: Crea-Ue. Kirdar | last post by:
hi there, i've hardly tried to find a solution. searched forums, usenet, google... so. i am having an application, that loops thru all the entries in the eventlog and reads those values. in a...
10
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ...
0
by: Anders \(TP\) | last post by:
Hi, I'm writing an application in C# and .NET framework that writes to the event log. It works fine but I've discovered a thing that bothers me. 1: I Register EventSource A1 for Custom event...
1
by: ipramod | last post by:
Hi, I am debugging one of my apps and I noticed that the EventID property of the EventLogEntry class does not always match up with the ID that is displayed in the MMC event viewer. Some of the...
2
by: kplkumar | last post by:
Hi all I am fairly new to windows scheduler. I have an .exe console application that needs to be run 1st of every month. I created a scheduled task in Windows Schduler and called the .exe. ...
1
by: Jeff | last post by:
I have developed an application and writing to the event log. I want to use the eventid to identify certain error conditions. Is there a standard for this or can I use any eventid. Regards...
1
by: baburk | last post by:
Hi all, I am writing eventlog. In EventLog class having WriteEntry() to write eventlog into the Event Logs file. It contains some parameter. How to get the eventID, category, rawData for...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.