Open
Description
Description
Using EventLog.Exists
on a log such as "ForwardedEvents" or "Setup" return false
, event though those logs are available on the machine.
Configuration
- Which version of .NET is the code running on? .NET 5
- What OS and version, and what distro if applicable? Windows 10 2020H2
- What is the architecture (x64, x86, ARM, ARM64)? x64
- Do you know whether it is specific to that configuration? No, it is not.
- If you're using Blazor, which web browser(s) do you see this issue in? N/A
Regression?
Unsure
Other information
It looks like EventLog.Exists
looks for information in the registry, which cannot detect the existence of non-classical logs.
EventLog.Exists
return false
on all logs with IsClassicLog=false
attribute, according to https://devblogs.microsoft.com/scripting/use-powershell-to-review-the-setup-event-log/ .