Skip to content

System.Diagnostics.Eventing.Reader.EventLogRecord throws an InvalidOperationException on Windows 2022 Server with .NET 4.8 runtime #79515

Open
@reveillesoftware

Description

@reveillesoftware

Discussed in #79510

Originally posted by reveillesoftware December 11, 2022
Receive this error on Windows 2022 Server with all current Windows Server updates: ERROR : We do not have 18 variants given for the UnsafeNativeMethods.EvtRenderFlags.EvtRenderEventValues flag. (System Properties)
at System.Diagnostics.Eventing.Reader.NativeWrapper.EvtRenderBufferWithContextSystem(EventLogHandle contextHandle, EventLogHandle eventHandle, EvtRenderFlags flag, SystemProperties systemProperties, Int32 SYSTEM_PROPERTY_COUNT) at System.Diagnostics.Eventing.Reader.EventLogRecord.PrepareSystemData() at System.Diagnostics.Eventing.Reader.EventLogRecord.get_TimeCreated() at ReveilleAPI.EventLogging.Client.CheckNewEventLog(String inComputerName, String inLog, String inSourceName, String inEventIDs, EventLogEntryTypeEx inEventType, Int32 inSecondsOld, String separator, Boolean& anyMessagesFound)

This was fixed in last year for WIndows 11, when will this be ported for Windows server 2022?

See - #60740

This prevents monitoring of the Windows Event log in Windows Server 2022 by 3rd party tools that use Windows API.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions