How to solve NotImplementedException during using WCF Duplex net.tcp binding?

Full exception message:

NotImplementedException: The requested feature is not implemented.
System.ServiceModel.DuplexClientBase1[TChannel].CreateChannel () System.ServiceModel.ClientBase1[TChannel].get_InnerChannel ()
System.ServiceModel.ClientBase`1[TChannel].Open ()
Assets.ClientProxies.Test.Start () (at Assets/ClientProxies/Test.cs:23)

Appears after i’m trying to open connection.

Simple WCF service without duplex, works perfectly, please help me to make duplex work,
the same code on .NET works fine.

Code listing:

using System;
using System.ServiceModel;
using UnityEngine;

namespace Assets.ClientProxies
{
    public class Test : MonoBehaviour, IMyServiceCallback
    {
        private GameObject _obj;
        // Use this for initialization
        void Start ()
        {
            Debug.Log("START");
               
            var client = new MyServiceClient(new InstanceContext(this),
                                         new NetTcpBinding(SecurityMode.None),
                                         new EndpointAddress(string.Format("net.tcp://localhost:9000/MyService/Main")));

            client.Open(); //<- Error here
            Debug.Log(client.GetNumber());
            Debug.Log("FINE");
        }
	
        // Update is called once per frame
        void Update () {
	
        }

        public void Hello()
        {
            throw new NotImplementedException();
        }

        public IAsyncResult BeginHello(AsyncCallback callback, object asyncState)
        {
            throw new NotImplementedException();
        }

        public void EndHello(IAsyncResult result)
        {
            throw new NotImplementedException();
        }
    }
}

Hi,

I was facing the same problem, until I copy another version of System.ServiceModel.dll and System.Runtime.Serialization.dll in my Unity Asset (or plugin) folder. You can find these assemblies here : Dropbox - Unity_Wcf_Duplex_Assemblies - Simplify your life

Have a good day !

Hello can anybody tell me how I could implement
Async methods for a WCF service? Like in the solution from EatingPeopleIsFun:

 public IAsyncResult BeginHello(AsyncCallback callback, object asyncState)
 {
       throw new NotImplementedException();
 }

I get many errors in Unity … and when I import a Mono libery with Task sutff for example Unity says that Tasking isn’t allowed (only Coroutines allowed)