ICommunicationObject.State do not work?
问题 Hi, I create my WCF client with DuplexChannelFactory, the problem is that when I do this : ((ICommunicationObject)this.GetMyServiceInterfaceChannel).State I get the followin exception : Cannot obtain fields or call methods on the instance of type 'System.ServiceModel.ICommunicationObject' because it is a proxy to a remote object. Why? I need to check if the channel is faulted. Edit1: ClientService clientService = new ClientService(); InstanceContext context = new InstanceContext(clientService