Category Archives: WCF

System.ServiceModel.ServiceActivationException when EnsureCertificateCanDoKeyExchange (netTcpBinding only)

This was a strange problem. I had a service with two endpoints, one with basicHttpBinding and one with netTcpBinding, both using transport security with certificates. If I tried to browse the service using IE I got a ServiceActivationException, and looking … Continue reading

Posted in WCF | Leave a comment

Securing a WCF Service in Windows Azure with SSL

It is easy to find articles on how to create https (SSL) endpoints in Windows Azure services, e.g. this one. But I didn’t find information on how to configure the actual service, so I had to experiment. Here is a … Continue reading

Posted in WCF, Windows Azure | 3 Comments

Using a WCF Custom Instance Provider

I recently developed a couple of WCF services that I wanted to share some common data, which I stored to and read from an XML file using standard serialization. (I didn’t want the trouble of setting up a database and … Continue reading

Posted in WCF | Leave a comment

System.ServiceModel.CommunicationException: The socket connection was aborted.

I recently encountered this misleading error from WCF: System.ServiceModel.CommunicationException: The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. … Continue reading

Posted in WCF | Leave a comment