WCF Communication Exception

An error occurred while getting an HTTP response at http: //production/Services/AccountService.svc . This may be due to a service endpoint binding that does not use the HTTP protocol. It could, it could also be due to the fact that the HTTP request context is interrupted by the server (possibly due to a service outage). See Server Logs for more information. the details.

What is the reason for this exception? I have data on exceptional details included in my ASP.NET site.config website where I host the WCF service.

I have a second service, which is for testing purposes only, which simply returns an int, which works flawlessly.

In addition, in development, which means that the consumption and the service application are on the same local computer, both services are running. This greatly complicates testing this error :(

Are there any recommendations regarding debugging in this particular situation?

+6
source share
3 answers

I feel that your pain with WCF is not related to the useful details of the exception. What you need to do is enable tracing, which provides detailed debugging information.

See Recommended Settings for Tracing and Logging on MSDN ...

+8
source

From what I see, this is a client site error. It looks like your WCF service failed and did not respond to the client, and the client gave you this error message. Check the server side trace. Also, if this is a long running task, change your sendTimeout to a longer time. I think the default is 30 or 60 seconds, so if your process runs more than you will have this type of error.

Hope this helps.

0
source

I had such an error when I tried to send large data structures via a web service. The type marked as [Serializable] passed the compilation of the WCF web service and the corresponding client without problems. I deleted this type and it would respond very well.

0
source

Source: https://habr.com/ru/post/894081/


All Articles