Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detect Event Viewer Keywords null value
Message
From
10/01/2017 10:05:47
 
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows Server 2012
Database:
Visual FoxPro
Application:
Web
Miscellaneous
Thread ID:
01646401
Message ID:
01646455
Views:
18
>Thanks. I didn't realize that Michel was using System.Diagnostics. See my reply to him - I ran some test code on a Application log and discovered that some entries were not found (wrong path info probably) and when that happens accessing some of the EventLogRecord properties (KeywordsDisplayNames, LevelDisplayName, OpCodeDisplayName and TaskDisplayName) throws a EventLogNotFoundException. Can't see any solution other than trapping for that in a try block :-{

That is correct. The only way to workaround those is with Try/Catch.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform