I am developing in dotnet and trying to connect to the datalayer while in the app build enviroment. So for example using the datalayer.client example in samples-net running the program will yield the following.
ctrlX Data Layer system started.
ctrlX Data Layer client created.
Client is not connected -> exit
I believe this is probably a combo of the wrong values in the connection string and maybe the dataleyer not running. Any advice on getting this set up?
Using Version: 1.18.1
Solved! Go to Solution.
So as you suggested probably data layer is not running, you have to give this answer. The Client example will try to connect to an existing data layer.
@CodeShepherd is right, it depends on where the Data Layer (respectively the ctrlX CORE) is you want to connect to. The connection settings in the .Net sample datalayer.client can be modified in the line 49 (see my screenshot).
Please put in here the ip, the user and password of the ctrlX CORE you want to connect to.
(If you want to connect to a ctrlX CORE virtual, which is running on your host with port forwarding you have to put in the ip: "10.0.2.2" and the sslPort: 8443)
Nick, that got it most of the way, still cant get my connection to my virtual core to work but I can connect to my physical one so that works.
great that you got the connection to the physical device running.
Some hint regarding the connection to the ctrlX COREvirtual: There are two ways to run your control.