In my case, I bumped the version from 4.4.0 to 4.9.0 in a .NET Core 3.1 project and got the same exception. Just downgrading the package to 4.8.6 solves my problem.