Skip to content

MissingMethodException in AddHealthChecksUI().AddInMemoryStorage() - Incompatibility with .NET 10 #2465

Description

@turric4n

Please, fill the following sections to help us fix the issue

What happened:

When updated to .NET 10 and Microsoft.EntityFrameworkCore to 10.0.2 and using AddHealthChecksUI with AddInMemoryStorage it raises the following exception :

System.MissingMethodException: Method not found: 'System.String Microsoft.EntityFrameworkCore.Diagnostics.AbstractionsStrings.ArgumentIsEmpty(System.Object)'.

What you expected to happen:

Don't crash

How to reproduce it (as minimally and precisely as possible):

.NET 10 + AspNetCore.HealthChecks.UI + AspNetCore.HealthChecks.UI.InMemory.Storage

Source code sample:

      builder.Services
          .AddHealthChecksUI()
          .AddInMemoryStorage();

       builder.Build();

Environment:

  • .NET Core version 10
  • Healthchecks version 9.0
  • Operative system: Windows or Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions