I'm trying to use AFSDK to connect to a PI Server, and I'm trying to troubleshoot why it is failing.
I've added a PISystem with the following two commands:
Dim newSys As PISystem = myPISystems.Add("piserver")
newSys.ConnectionInfo.Host = "piserver"
newSys.Connect() shows the following error:
Could not connect to net.tcp://piserver:5457/AFServer/Service. The connection attempt lasted for a time span of 00:00:01.0553760. TCP error code 10061: No connection could be made because the target machine actively refused it xx.xx.xx.xx:5457.
Is this connection trying to connect to a PI Server or AF Server Service? is an AF Server service required for this PI Server connection?