Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detect Event Viewer Keywords null value
Message
De
11/01/2017 11:04:05
 
 
À
11/01/2017 10:31:48
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows Server 2012
Database:
Visual FoxPro
Application:
Web
Divers
Thread ID:
01646401
Message ID:
01646527
Vues:
21
>No - loEventLogRecord.Keywords is not null it is 36028797018963968 (which is correct for the hex value in the event log). Exception (as commented in code) is when accessing KeywordsDisplayNames. Exception type is System.Diagnostics.Eventing.Reader.EventLogNotFoundException. Don't you see the same behaviour ?

I finally found what was causing this. On that new environment, when the migration was done, the EventViewer.Keyword field was defined as Integer instead of BigInt. Once I made that change, I started to see the values. I have some like -9223372036854775808. I guess in such circumstances, as the value was not fitting, a null was being put.

Thanks for everything, that allowed me to see additional things in regards to all this.
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform