0

I write the WCF services and hosted it on windows service (Self host) and expose method1 and method2. From this method 1 is working properly but when i am trying to consume method2 it is giving me error like

An error occurred while receiving the HTTP response to http://********/*******/service. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.

When I check the app_tracelog so in XML there is System.Xml.XmlException: The body of the message cannot be read because it is empty.

So can anyone please tell why this is happening? It is working for one method and not working for other method.

Tilman Hausherr
  • 17,731
  • 7
  • 58
  • 97
Yogesh
  • 11
  • 2

0 Answers0