Skip to content

[6.0] CI failure: UnauthorizedAccessException in System.Diagnostics.Tests.ProviderMetadataTests.GetProviderNames_AssertProperties #80475

@carlossanlop

Description

@carlossanlop

I'm seeing this test failure intermittently affecting release/6.0 backport PRs.

    System.Diagnostics.Tests.ProviderMetadataTests.GetProviderNames_AssertProperties [FAIL]
      System.UnauthorizedAccessException : Attempted to perform an unauthorized operation.
      Stack Trace:
           at System.Diagnostics.Eventing.Reader.EventLogException.Throw(Int32 errorCode)
           at System.Diagnostics.Eventing.Reader.NativeWrapper.EvtOpenProviderMetadata(EventLogHandle session, String ProviderId, String logFilePath, Int32 locale, Int32 flags)
           at System.Diagnostics.Eventing.Reader.ProviderMetadata..ctor(String providerName, EventLogSession session, CultureInfo targetCultureInfo, String logFilePath)
        /_/src/libraries/System.Diagnostics.EventLog/tests/System/Diagnostics/Reader/ProviderMetadataTests.cs(104,0): at System.Diagnostics.Tests.ProviderMetadataTests.GetProviderNames_AssertProperties()

The test failure is happening in this constructor:

using (var providerMetadata = new ProviderMetadata(providerName))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions