We got the below error while in one of our plugin assemblies.
As it turned out we were referencing the latest, version 9 Dynamics 365 assemblies in our plugin project, against our Dynamics 365 Environment which was still in version 8.2.
Adding the appropriate NuGet Package (i.e. 188.8.131.52) fixed the issue for us.
The helpful post
Hope it helps..