I have a WCF Service running fine on my local machine. I put it on the servers, and I am receiving the following error:
An error occurred while receiv
This might not be relevant to your specific problem, but the error message you mentioned has many causes, one of them is using a return type for an [OperationContract] that is either abstract, interface, or not known to the WCF client code.
Check the post (and solution) below
https://stackoverflow.com/a/5310951/74138
If you have a database(working in visual studio), make sure there are no foreign keys in the tables, I had foreign keys and it gave me this error and when I removed them it ran smoothly
My problem was, that return type of my service was string. But I returned string of type xml:
<reponse><state>1</state><message>Operation was successfull</message</response>
so error was thrown.
I've had this same error and the problem was serialization. I managed to find the real problem using Service Trace Viewer http://msdn.microsoft.com/en-us/library/ms732023.aspx and solved it easy. Maybe this will help someone.