Visual Studio Code – ASP.NET Core Mimal APIs – AddEndpointFilter throws InvalidOperationException
AddEndpointFilter throws exception shown below in .NET 7 (7.0.102) at program start under debug. Used IDE Microsoft Visual Studio Professional 2022 (64-bit) - Current Version 17.6.3 System.InvalidOperationException HResult=0x80131509 Message=A suitable constructor for type 'WebApplication3.OperationCancelledFilter' could not be located. Ensure the…