If I use only simple methods in my WCF service, everything works fine. However, if I include the following method, a problem occurs:
[OperationContract]
publ
As it turned out, the error was caused by the fact that I had a Microsoft Web API package installed from NuGet, which included Json.NET. After uninstalling this, it works fine.
This may be the answer for you - if not, look at which other packages you have installed (that you don't need) and remove them.