After Migrating my project from ASP.NET Core 3.1 to 5.0 I have encountered this problem:
ASP.NET Core 3.1
5.0
The Error:
Sev