The real problem with that code is the fact that it assumes a non-null InnerException at all. It should be:null == ex.InnerException ? "No Inner Fault" : ex.InnerException.MessageThere's also no mention of aborting the WCF proxy, as is usual with a failed WCF call. It's not clear whether client code is responsible for doing that, or if the extra infrastructure provided by CRM libraries will do it and automatically reinitialise a channel encapsulated in a ServiceProxy.
↧