;lmkl Bonjour, je suis en train de faire deux application qui communique par WCF et les pipe nommés. La communication fonctionne sauf si je laisse la connection ouverte sans faire de demande pendant un certain temps. La connection passe en état fault. On dirait qu'il y a un problème de timout mais je n'arrive pas à trouver comment le configurer. Voici le fichier app.config coté serveur WCF:
et coté client WCF je n'ai pas de app.config, tout est fait dans le code: // -- OUVRIR OU FERMER LA COMMUNICATION AVEC LE SERVER WCF -- public bool Open() { bool bRet; NetNamedPipeBinding netNamedPipeBinding = new NetNamedPipeBinding(); EndpointAddress endPointAddress = new EndpointAddress("net.pipe://localhost/NetNamedPipeBinding_MY"); m_channelFactory = new ChannelFactory
(netNamedPipeBinding, endPointAddress); try { m_channelFactory.Open(); m_wcfSericeContract = m_channelFactory.CreateChannel(); bRet = true; } catch (Exception) { // TODO GERER L'EXCEPTION bRet = false; } return bRet; } Pouvez-vous m'aider pour configurer les timoute de WCF ?