I have a wcf service hosted in a website in IIS and I seem to have this issue. In my web.config I have this:
The solution for me was to:
Go to: Tools > Nuget Package Manager > Manage NuGet Packages for Solution
Install the System.Linq package.