473,382 Members | 1,386 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,382 software developers and data experts.

LogEntry ReplacementStrings


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 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 1731
Hi Cablito,

I hope that this helps?

Cor
\\\
Dim myEventLog As New Diagnostics.EventLog("System", ".")
Dim myLogEntryCollection As _
EventLogEntryCollection = myEventLog.Entries
For i As Integer = myLogEntryCollection.Count - 1 To 0 Step -1
Dim myLogEntry As EventLogEntry = myLogEntryCollection(i)
Dim mystrings() As String = myLogEntry.ReplacementStrings
For Each str As String In mystrings
Console.WriteLine(str)
Next
Next
///
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 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
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...
5
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...
1
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...
7
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...
7
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.