Skip to content

EventLog without desktop framework installed results in "message is not found" logs in EventViewer #27742

@pakrym

Description

@pakrym

Original issue: aspnet/Logging#858

As far as I understood from reading EventLog implementation it relies on EventLogMessages.dll file that shipped with the desktop framework and doesn't ship as part of .net core resulting in the message resource is present but the message is not found in the string/message table message being prepended to all event logs in event viewer.

Additionally EventLog.CreateEventSource(string, string) would create event source pointing to EventLogMessages.dll inside shared directory (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.1.0\EventLogMessages.dll) that doesn't exist.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions