You see this type of error when the assembly you use is different from the reference assembly.
Example
In this condition, you see this error, because the first using version 3 and the others using 2


Please complete these checks.
1: Open the link with the right mouse button on the System.Data.Common.DbProviderFactories assembly and check its version
2: .
, ,
https://www.nuget.org/packages/System.Data.Common/
bin, dll 'System.Data.Common.DbProviderFactories', , " ", , , .
appconfig .
user5093161