Hi all!
I am having a bit of a problem getting an OPC client on a windows XP Pro SP3 machine to connect to an OPC server on a Win 2003Server machine. Two other clients (Win 2000 pro, and 64bit Win Server 2003 pro R2 SP2) connect just fine, so I find it hard to believe that there should be anything wrong on the OPC Servers side.
Im using Opc Da Client to test the connection to the server.
The setup:
Server: 192.168.253.52, running FactoryLink OPCServer FL.OPCServer (as stated above, I dont think this is where the problem lies, as the other two clients connect with no problems)
Win 2000: 192.168.254.99, connects without problem,
Win 2003 server: 192.168.253.42, connects without problem
Win XP: 192.168.254.120, connection problem:
In the OPC Da Client, when connecting with the correct settings, the reply is:
OPC DA Client could not connected to FL.OPCServer
The hostname name or servername may be not correct
The underlying system prompt has the following information:
INFO: DCOM : Initialize DCOM.
TRACE: DCOM : Successfully initialized DCOM, now 1 usages.
ERROR: OPCServer : Function 'IOPCServerList::CLSIDFrom
ProgID' on remote machine failed. Error 0x80070005 - Access is den
ERROR: OPCServer : The OPC server FL.OPCServer on host 192.168.253.52 could not be found in the registry. Error 0x800700 denied.
If attempting to connect with wrong server name (i.e. other than FL.OPCServer), but correct ip, the error messages are the same.
If attempting to connect to a wrong ip (i.e. other than 192.168.253.52) , the error message in the prompt is:
INFO: DCOM : Initialize DCOM.
TRACE: DCOM : Successfully initialized DCOM, now 1 usages.
ERROR: OPCServer : Cannot connect to OPCBrowser on remote machine. Error 0x800706BA - The RPC server is unavailable.
ERROR: OPCServer : Function 'IOPCServerList::CLSIDFrom
ProgID' on remote machine failed. Error 0x800706BA - The RPC server is unavailable.
ERROR: OPCServer : The OPC server FL.OPCServer on host 192.168.253.152 could not be found in the registry. Error 0x800706BA - The RPC server is unavailable.
So it appears to be the case that the XP machine does connect to something (in the registry?) prevents the client from establishing the connection, and since the two other clients can connect, I dont think there is a problem with the client either.
I have compared the setting on all 3 clients, and I dont see any differences in their configuration or the configuration of OPCEnum.
I have also followed the OPC & DCOM Troubleshooting: Quick Start Guide and OPC and DCOM: 5 Things You Need To Know guides without much luck, either.
Any help or pointers would be much appreciated!
Thanks in advance,
Morten