NamedPipeClientChannel 'Unable to connect to pipe. Error code 123"

public static class Comm
{

    private static NamedPipeClientChannel NewNamedPipesChannel()
    {
        NamedPipeClientChannel _channel = new NamedPipeClientChannel();
        _channel.NetworkByteOrder = false;
        _channel.Server = "http://127.0.0.1:9200/bin";
        _channel.Path = "server";
        _channel.TargetUrl = "http://127.0.0.1:9200/bin";
        _channel.TargetUri = new Uri("http://127.0.0.1:9200/bin");
        return _channel;
    }
    public static ILitrixPoleoService NewPoleoService()
    {
        BinMessage _message = new BinMessage();
        NamedPipeClientChannel _channel = NewNamedPipesChannel();
        return CoLitrixPoleoService.Create(_message, _channel);
    }

    public static ILitrixPoleoService_Async NewPoleoServiceAsync()
    {
        BinMessage _message = new BinMessage();
        NamedPipeClientChannel _channel = NewNamedPipesChannel();
        return CoLitrixPoleoServiceAsync.Create(_message, _channel);
    }

}

I dont now what im doing wrong…

Hmm, why would a named pipe channel use a HTTP URL? that seems wrong…

127.0.0.1 is only example of a url, normally im connecting to remobjects server running in another pc but youre right. My mistake im thought its was the same way

1 Like