When you expose the WCF service with RESTful endpoints with json format and try to consume the same, You might have experienced the following error in your fiddler.
“[Fiddler] ReadResponse() failed: The server did not return a response for this request. Server returned 0 bytes”
It often takes you mad if this is the first time you experience it since it does not provide any trace or debug information for you to investigate. However after spending quite few hours, i realized that root cause for the issue is that WCF does not serialize certain objects perfectly into JSON. That is still okay. But that is part of the problem. The main issue is it does not provide you debug information explicitly. Therefore, you have to take few steps to enable trace and debug WCF serialization.
Step – 1. Add the following configuration under your <configuration> element in the web.config
View original post 150 more words