Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting to remote classic OPC DA server #4

Open
mukeshhope opened this issue Nov 26, 2021 · 1 comment
Open

Connecting to remote classic OPC DA server #4

mukeshhope opened this issue Nov 26, 2021 · 1 comment

Comments

@mukeshhope
Copy link

Hi Team,

I am trying to connect to a classic OPC DA.
I can connect when server is local but facing problems while connecting to remote OPC DA.
when I try to discover servers then for local it works fine, but for remote it gives below error
var discoveryClient = new OpcClassicDiscoveryClient("", identity)
OpcException: Could not create COM server '13486d51-4821-11d2-a494-3cb306c10000' on host ''. Reason: The object exporter specified was not found

Can you please share some sample configuration with code example that needs to be made on the client or server, ports that needs to opened etc

In the end, I would like to create a container which will run on linux to connect to OPC DA server

@kpreisser
Copy link
Member

Hi @mukeshhope,

such an error could occur if the machine where you are using the OpcClassicDiscoveryClient, or the machine where the OPC Classic Server is running, doesn't have the OPC Core Component Redistributables installed for the architecture in which your process runs (x86 or x64). You can download them from our docs site.

If it still doesn't work after installing the redistributables and your process is running as x64 (64-bit), please try running it as x86 (32-bit) instead.

Please also note that the OPC Classic connectivity (OpcClassicDiscoveryClient, or OpcClient using a opc.com: URL) can only work on Windows machines as it uses a Windows-only technology (Component Objet Model). However, because connecting a OpcClient using a opc.com: URL creates a OPC UA Wrapper Server on the local machine, it would be possible to run such a wrapper server on a Windows machine, and then use the OpcClient on a Linux machine to connect to that OPC UA Wrapper Server.
The Wrapper server is automatically started when the OpcClient connects to the OPC Classic server, and uses the port specified in the URL to listen for incoming OPC UA connections.

For more information about how to connect to OPC Classic servers, you can refer to our documentation.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants