Using the BasicClient example as a starting point, I am trying to connect to a UA Data Access Server (wrapped OPC Server, using Foundation Quickstart Wrapper). I am using the evaluation version of the .NET Client SDK 2.0.
Code: Select all
m_session.Connect(textBoxServer.Text, SecuritySelection.None);
results in a StatusException (BadUnexpectedError) with error message "Der angegebene Host ist unbekannt.".
The server is running and I can connect to the server with UAExpert from the same development machine without problems. Windows Firewall is configured to allow all communication from the client. Inspection of the EndpointDescription property of m_session after the exception has occured shows the correct values for the server.
Setting the SecuritySelection to BestAvailable, accepting the untrusted certificate and supressing the hostname mismatch results in the same error message when trying to connect.
What could be the cause of this error and can you try to provide some clues on how to solve the problem?
Regards,
Ines D.