Git Product home page Git Product logo

Comments (6)

sandrist avatar sandrist commented on May 25, 2024

Hello, it would be helpful if you could share your code, at least the parts where you setup the remote importer and exporter components. How are they configured in your application?

Another quick thing to check is your Windows firewall settings. Make sure your application is allowed through the firewall (Public and Private).

from psi.

AuMilliat avatar AuMilliat commented on May 25, 2024

Hello, thanks for your time.

For exporter:

            pipeline = Pipeline.Create(enableDiagnostics: true);
            Out1 = pipeline.CreateEmitter<uint>(this, "Group1");
            Out2 = pipeline.CreateEmitter<uint>(this, "Group2");
            Out3 = pipeline.CreateEmitter<uint>(this, "Group3");
            Out4 = pipeline.CreateEmitter<uint>(this, "Group4");
            Out5 = pipeline.CreateEmitter<uint>(this, "Group5");

            exporter = new RemoteExporter(pipeline);
            exporter.Exporter.Write(Out1, "Group1");
            exporter.Exporter.Write(Out2, "Group2");
            exporter.Exporter.Write(Out3, "Group3");
            exporter.Exporter.Write(Out4, "Group4");
            exporter.Exporter.Write(Out5, "Group5");
            pipeline.RunAsync();
            InitializeComponent();

For the importer:

using Microsoft.Psi;
using Microsoft.Psi.Remoting;

// Enabling diagnotstics !!!
Pipeline p = Pipeline.Create(enableDiagnostics: true);

/*** REMOTE IMPORTER ! ***/
RemoteImporter importer = new RemoteImporter(p, ReplayDescriptor.ReplayAll.Interval, "TABLETTE");
Console.WriteLine("connecting");
if (!importer.Connected.WaitOne(-1))
{
    throw new Exception("could not connect to server");
}
Console.WriteLine("connected");

// RunAsync the pipeline in non-blocking mode.
p.RunAsync(ReplayDescriptor.ReplayAllRealTime);
// Wainting for an out key
Console.WriteLine("Press any key to stop the application.");
Console.ReadLine();
// Stop correctly the pipeline.
p.Dispose();

We've tried without firewall and on a local network. I was guessing it's more related to configuration in PSI or something going wrong as the metadata are received.

from psi.

AshleyF avatar AshleyF commented on May 25, 2024

From the trace it appears that the TCP connection is made successfully and stream metadata is transferred (this is over TCP regardless of the data TransportKind). But then it fails to make the data connection. This is over named pipes by default.

Is it possible to try another transport - perhaps TCP (the TransportKind argument to the RemoteExporter ctor)?

from psi.

AuMilliat avatar AuMilliat commented on May 25, 2024

It's working with TCP, thanks!

Is it worth dinging on the named pipes exception ?

from psi.

AshleyF avatar AshleyF commented on May 25, 2024

Glad TCP is working!

The named pipes exception HRESULT seems to indicate some authentication or access issue. I think we need to add more useful exception messaging and also may need to add options to configure security descriptors, etc..

from psi.

AuMilliat avatar AuMilliat commented on May 25, 2024

Yeah, I'm not familiar with named pipe, I was expecting the usual "run as administrator" on both side would do the job.

I'm closing the issue, thanks for your time!

from psi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.