Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WCF Communication Exception

Tags:

c#

asp.net

wcf

An error occurred while receiving the HTTP response to http://production/Services/AccountService.svc. 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.

What could be the reason for this exception? I have exception details enabled on my ASP.NET site web.config file, where I host the WCF service.

I have a second service that's just for testing purposes that just returns an int, which works flawlessly.

Also, in development, meaning both the consuming and the service application are on the same local computer, both services work. Which makes testing for this error that much harder :(

Any advice as to how to debug in this particular situation?

like image 478
bevacqua Avatar asked Aug 02 '11 03:08

bevacqua


Video Answer


1 Answers

I feel your pain with WCF's lack of useful exception detail. What you need to do is enable tracing which provides in-depth debugging information.

Have a look at the Recommended Settings for Tracing and Message Logging on MSDN...

like image 195
Alastair Pitts Avatar answered Oct 05 '22 17:10

Alastair Pitts