473,654 Members | 3,011 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to get EventID

111 New Member
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 an exception

eventID
Type: System..::.Int3 2

The application-specific identifier for the event.

category
Type: System..::.Int1 6

The application-specific subcategory associated with the message.

rawData
Type: array< System..::.Byte >[]()[]

An array of bytes that holds the binary data associated with the entry.
May 22 '08 #1
1 1357
Plater
7,872 Recognized Expert Expert
I believe there is an ENUM somewhere with this information, perhaps MSDN has some examples for it?
May 22 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
958
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!
1
1439
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 configuration-database i have some eventids, which i want to match. i've read the eventids from the mmc for this.
2
2168
by: Wellingotn Rampazo | last post by:
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
1
4108
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 EventID values I get, are large numbers when I retrieve it through the EventLogEntry class member EventID and that do not seem to relate to the MMC event viewer displayed value at all. Am I missing something really obvious here?
2
4172
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. The application is supposed to pull some report data and make a webservice call to sent out this data.
0
9239
by: TeamEITC | last post by:
Just recently (Today only... with no previous cases) im receiving errors on my SQL servers. I run Sharepoint Portal Servers x 2 (clustered) and 2x SQL Servers (clustered). The 2 sql servers are SHR3 and SHR4, the SQL's are SQL1 and SQL2. The cluster for SHR3 and SHR4 is "SPS", the cluster for SQL1 and SQL2 is "SQLCLUSTER". the error is as follows Source : MSSQLSERVER Category : (4) Type : Failure Audit Event ID: 18456 User DOMAIN\SHR3$...
10
2191
klarae99
by: klarae99 | last post by:
I am working on an Inventory Database in Access 2003. I am having trouble with a report I designed to show current inventory in stock. I have a form (frmInventory) that is unbound. There are four combo boxes on this form that allow the user to select Location, Vendor, Category and SubCategory. These selections (or blank fields) are then passed on to a query (see SQL below) and a report opens to show the inventory. This worked really well...
1
1865
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 Jeff
0
900
by: Frank Hauptlorenz | last post by:
Hello out there, I have 2 services running. The first one runs in session mode and the 2nd not. The first one should call an operation of the 2nd one asynchronously, because this is doing some long running calculations. If this call is synchronously, everything is running okay. If it's call async the operation does not even start. (I've setup up some event log message at the entry point).
0
8375
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8290
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8815
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8482
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8593
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7306
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5622
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1593
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.