An existing connection was forcibly closed by the remote host

I had a bit of a headache with this error message today.

The following post helped me figure out the issue:

http://stackoverflow.com/questions/204032/complex-data-types-in-wcf

What caused the issue:

I added an enumeration member to a DataContract without adding [EnumMember] attribute

Details:

[SocketException (0x2746): An existing connection was forcibly closed bythe remote host][IOException: Unable to read data from the transport connection:An existing connection was forcibly closed by the remote host.][WebException: The underlying connection was closed: An unexpectederror occurred on a receive.][CommunicationException: An error occurred while receiving the HTTPresponse to http://myservice.mydomain.dk/MyService.svc. This couldbe due to the service endpoint binding not using the HTTP protocol.This could also be due to an HTTP request context being aborted bythe server (possibly due to the service shutting down). See serverlogs for more details.]
Advertisements

About vijayvepa

I'm a software consultant for Software Specialists Inc. currently working at Philips Respironics, Pittsburgh

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: