02/18/2021
Hello all,
I tried to use the 64 bit Version of our self developed OPC server which works as 32 bit Version for years without any trouble, but the OPC client can't find the server. Both applications running on the same Win 64 PC.
I installed the newest OPC core components, deleted the DCOM configuration service entry of the 32 bit OPC server, and also cleaned the associated registry entries. Nothing helped.
I am grateful for any ideas.
02/18/2021
The OPC Client is a commercial product and works with 64 Bit OPC Servers according to the manufacturer.
In addition, I have tried the Matrikon OPC Explorer, also without success.
Is there a certain sequence that has to be followed when changing an OPC server from the 32 bit variant to the 64 bit variant? So the same application with the same name?
05/30/2017
Do you have access to this download:
https://opcfoundation.org/deve.....e-servers/
It has sample code that registers servers used to test OpcEnum.
It appears it does not have x64 code.
05/30/2017
The issue is this: the server registers its component categories in its bitness but only clients with the same bitness can see them. OpcEnum installs a component that allows OpcEnum to Enumerate the categories in a different bitness.
Your server is likely not registering its component categories properly.
I suggest you use regedit to compare the registry entries of servers that do work and your server.
This may allow you to find what is missing.
02/18/2021
The following registry keys were not present. After adding this parts manually, the OPC Client was able to connect to our 64-bit OPC server.
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WOW6432Node\AppID\{E421E9FD-C93E-43E0-81A8-293BFF85A35E}]
@="My OPC DA Server"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\My_OPC_DA_Server]
@="My OPC DA Server"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\My_OPC_DA_Server\CLSID]
@="{E421E9FD-C93E-43E0-81A8-293BFF85A35E}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\My_OPC_DA_Server\OPC]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\My_OPC_DA_Server\OPC\Vendor]
@="the"
I copied this registry keys from another PC, where our 64-bit OPC server runs fine and is found by the OPC client application. Basically, the 64-bit variant works, but there must be differences between the two installations. So I am looking for any hint why our OPC server once will be registered properly and once not.
For example, is there a defined procedure for switching an OPC Server from one target platform to another, thus from 32- to 64-bit?
Is it necessary to first unregister the 32-bit OPC server instance and then register the new 64-bit instance?
05/30/2017
The missing WOW6432Node key registered your x64 server in the 32-bit registry.
The other entries register you server in the 64 but registry. It is not clear why it worked with 64 bit clients without them.
Maybe the issue is you registered your 64 bit server in the 32 bit registry and messed up the COM infrastructure.
1 Guest(s)