I\'m hosting a WCF service in IIS 7.5 using .NET 4.0. I also have a WPF application that I am using as my client that was built with Visual Studio 2010 and .NET 4.0. I add
in my case same error was caused by missing
[datacontract] [datamember]
attributes in returned data type.
Error message was really misleading.