Search code examples
wcf

WCF catches exception " The server did not provide a meaningful reply.."


after a server call my client catches an exception with the following message

"The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error."

Also, note I tried the configuration in WCF "The server did not provide a meaningful reply" but still didn't work.

Please note, that I debug the service to the end, and the data is successfully populated but at the client end when the data is supposed to appear it just crashes with the mentioned exception.

Any help appreciated.


Solution

  • I figured out the reason behind this that the proxy was wrongly generated for an enum type, it was generated as a string so it failed and gave me out that exception