I am converting a project in .NET Core 3.1. But for some reason the System.TypeLoadException exception is being raised in my code:
System.TypeLoadException