Skip to content

Event WslWindowsTrustSucceeded was assigned event ID 115 but 113 was passed to WriteEvent. #65390

@eerhardt

Description

@eerhardt

running dev-certs https --trust on 10.0.103 is showing:

[0] ERROR: Exception in Command Processing for EventSource Dotnet-dev-certs: Event WslWindowsTrustSucceeded was assigned event ID 115 but 113 was passed to WriteEvent.
Trusting the HTTPS development certificate was requested. Trust is per-user and may require additional configuration. See https://aka.ms/dev-certs-trust for more information.
There was an error trusting the HTTPS developer certificate. It will be trusted by some clients but not by others.
Error: Process completed with exit code 4.

Looks like a merge error in the release branch:

[Event(115, Level = EventLevel.Verbose, Message = "Successfully trusted the certificate in the Windows certificate store via WSL.")]
internal void WslWindowsTrustSucceeded() => WriteEvent(113);
[Event(116, Level = EventLevel.Warning, Message = "Failed to trust the certificate in the Windows certificate store via WSL.")]
internal void WslWindowsTrustFailed() => WriteEvent(114);
[Event(117, Level = EventLevel.Warning, Message = "Failed to trust the certificate in the Windows certificate store via WSL: {0}.")]
internal void WslWindowsTrustException(string exceptionMessage) => WriteEvent(115, exceptionMessage);

These numbers don't align.

cc @danegsta

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-commandlinetoolsIncludes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPIfeature-devcerts

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions