473,586 Members | 2,652 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

LogEntry ReplacementStri ngs


Anyone know how to deal with the ReplacementStri ngs from the LogEntry class?

When you read a LogEntry.Messag es that has extended characters or whatnot,
it throws an exception about converstion overflow - well, there is something
to do with replacementStri ngs, I just can´t figure how to get pass this.

I´ve tried the most absurd things to get through (I won´t even post what I
have tried or else my gene pool would be haunted by this for centuries).

any help is appreciated.
Jul 21 '05 #1
1 1748
Hi Cablito,

I hope that this helps?

Cor
\\\
Dim myEventLog As New Diagnostics.Eve ntLog("System", ".")
Dim myLogEntryColle ction As _
EventLogEntryCo llection = myEventLog.Entr ies
For i As Integer = myLogEntryColle ction.Count - 1 To 0 Step -1
Dim myLogEntry As EventLogEntry = myLogEntryColle ction(i)
Dim mystrings() As String = myLogEntry.Repl acementStrings
For Each str As String In mystrings
Console.WriteLi ne(str)
Next
Next
///
Anyone know how to deal with the ReplacementStri ngs from the LogEntry class?
When you read a LogEntry.Messag es that has extended characters or whatnot,
it throws an exception about converstion overflow - well, there is something to do with replacementStri ngs, I just can´t figure how to get pass this.

I´ve tried the most absurd things to get through (I won´t even post what I
have tried or else my gene pool would be haunted by this for centuries).

any help is appreciated.

Jul 21 '05 #2

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

Similar topics

8
2022
by: Fabio Papa | last post by:
I am trying to write a windows service that sends emails to clients at specific times based on information in a sql db. Since this is done for multiple cities, I start a thread for each city and continue the processing from each thread. My service starts fine (gives me no errors, etc), but it doesn't seem to start the new threads. I am new...
5
2031
by: | last post by:
I can´t find anything *usefull* about replacement strings, even on google! Anyone know how to deal with the ReplacementStrings from the LogEntry class? When you read a LogEntry.Messages that has extended characters or whatnot, it throws an exception about converstion overflow - well, there is something to do with replacementStrings, I just...
1
1035
by: | last post by:
Anyone know how to deal with the ReplacementStrings from the LogEntry class? When you read a LogEntry.Messages that has extended characters or whatnot, it throws an exception about converstion overflow - well, there is something to do with replacementStrings, I just can´t figure how to get pass this. I´ve tried the most absurd things to...
7
3124
by: Washington Moreira | last post by:
Hi All, I need help with ReplacementStrings on EventLog messages. The question is: How to replace things such %{SID} and %{GUID} inside EventLogEntry.Message? When the case is %{SID}, I solved by using SecurityIdentifier and IdentityReference classes. But when the case is %{GUID}, few times I have lucky with the DirectorySearcher class...
7
1801
by: dm3281 | last post by:
Hello, I have this non-standard XML file that I have to manually sort thru each day and verify whether various jobs finish successfully or not. This file isn't a real XML file, so I cannot appear to read it using XML classes. I was wondernig if this is something I can/should read into memory using StreamReader class and then somehow...
0
7912
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...
0
7839
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...
1
7959
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...
0
6614
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...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5390
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...
0
3865
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1449
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.