Browsing All Posts filed under »Pitfalls«

EncoderFallbackException when passing UTF8 characters

January 11, 2011 by

0

Symptom A while ago, in one of our systems which sends text messages over WCF, we encountered a mysterious exception: System.Text.EncoderFallbackException: Unable to translate Unicode character \uD8B8 at index XX to specified code Advertisements

WmiChannels memory leak

November 18, 2010 by

0

The following bug happens in a very specific scenario in which one element is both the server side for one WCF operation, and the client side for another  WCF operation, and all services work in a singleton mode (the InstanceContextMode is single). Since we encounter this scenario, and spent hours trying to analyze it, we […]

WCF call from a callback thread receives TimeoutException

November 10, 2010 by

1

Symptom In the following scenario, when performing two WCF calls, where the second call is performed from the callback thread of the first call, the second request results with a TimeoutException.   m_proxy.BeginAdd(3,4,(IAsyncResult ar) => { m_proxy.EndAdd(ar); m_proxy.Divide(8,2); // Receives TimeoutExcpetion }, null); What actually happens is that the first operation (Add) ends successfully, but […]

ProtocolException is thrown when content-type header is missing

November 10, 2010 by

0

Symptom – WCF can not handle requests and responses which don’t include the content-type header and it throws exception which contains the following message – An HTTP Content-Type header is required for SOAP messaging and none was found According to RFC 2616 (see http://www.ietf.org/rfc/rfc2616.txt section 7.2.1 ) this is a legal scenario: Any HTTP/1.1 message […]