Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detect Event Viewer Keywords null value
Message
De
11/01/2017 11:23:11
 
 
À
11/01/2017 11:04:05
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:
01646529
Vues:
24
>>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.

That's SQL behaviour - not .NET ?

>Thanks for everything, that allowed me to see additional things in regards to all this.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform