for a few days i am trying to connect the getting_started lesson01 client with a dataFEED OPC UA server and it does not work.
The code itself works fine but an error occurs every time i try to connect. Obviously i changed the endpointurl and checked that the usertokentype is OpcUa_UserTokenType_Anonymous.
Code: Select all
UA Client: Connecting to opc.tcp://localhost:48050 ...
--> Sample_ConnectionStatusChanged_CB: Connecting
Sample_ConnectionError_CB:
ServiceType: ActivateSession
Error: 0x80200000
CliendSideError: false
An error occurred. Terminating now.
An error occurred. Terminating now.
--> Sample_connectionStatusChanged:CB: Disconnected
UA Client: Main stopped
As a test i tried to connect to the UAGateway with completely the same configuration and then the communication works fine with no error.
Therefore i used Wireshark to compare the traffic. The last working message ist the ActivateSessionRequest from client to server before a ServiceFault arises. Compared to the working connection, the message - for me - seams to be the same. Therefore i used two computer and changed die IP of the url.
By using the demo_client a connection to the fixed url does not work as well. If i try to connect by using the discovery i am able to connect to the dataFEED server with no security policy.
While debugging i could not find any difference between the settings of the lesson01 client and the demo client of unified automation.
Thanks for some hints.
Florian
---
I use VisualStudio 2010 on Windows7 and the firewall is not active.