I’ve already blogged in the past on how to easily troubleshoot WCF Exception and that suggestion is valid for every exception you encounter in WCF. Today I have a function that gave the error System.ServiceModel.CommunicationException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. —> [...]

Continue reading about Troubleshoot WCF The underlying connection was closed: A connection that was expected to be kept alive was closed by the server

Basic Request Response WCF service Reason behind a request – response service in WCF Evolving Request Response service to separate contract and business logic How to instantiate WCF host class with MEF One of the problem I had to solve to make WCF and MEF live together,  is knowing all the types discovered by MEF [...]

Continue reading about Getting the list of Type associated to a given export in MEF

Basic Request Response WCF service Reason behind a request – response service in WCF Evolving Request Response service to separate contract and business logic I described in the last post of the series the structure behind the Request/Reponse service based on MEF, now it is time to explain how to make MEF and WCF happily [...]

Continue reading about How to instantiate WCF host class with MEF

Example can be downloaded here. I previously described a scenario where the customer needs a really basic Request Response service in WCF, the goal is being able to take advantage of a request / response structure, but with an approach like: “the simpliest thing that could possibly works”. This technique is usually needed to introduce [...]

Continue reading about Evolving Request Response service to separate contract and business logic

WCF is an exceptional library but sometimes it is hard to troubleshoot problems, especially when you start to encounter intermittent communication errors and you feel lost because you have no clue on where the error is. As an example I have a service that worked for a lot of time, then sometimes the client started [...]

Continue reading about Troubleshoot WCF exception