Open sriki24 opened 2 years ago
In my case it works fine. But need to follow special setup guide. For example for Kepware guide is here - https://www.kepware.com/getattachment/04042e47-c690-467c-a931-a1ca126575db/Remote-OPC-DA-Quick-Start-Guide-DCOM.pdf
So, this problem is not about TitaniumAS.Opc.Client component but about correct DCOM access configuration for the OPC server which are you using.
I have a requirement where i need to connect to OPC DA server locally as well to some remote servers in a different PC. The localhost is working fine where as if i provide the IP address of the machine where OPC DA server is running getting the exception CoCreateInstanceEx: The RPC server is unavailable. at TitaniumAS.Opc.Client.Interop.System.Com.CreateInstance(Guid clsid, String host, NetworkCredential credential) at TitaniumAS.Opc.Client.Common.OpcServerEnumeratorAuto.CLSIDFromProgId(String progId, String host) at TitaniumAS.Opc.Client.Da.OpcDaServer.<>cDisplayClass7.b 4(String host, String progId)
at TitaniumAS.Opc.Client.Common.UrlParser.Parse[T](Uri opcServerUrl, Func
3 withProgId, Func
3 withCLSID) at TitaniumAS.Opc.Client.Da.OpcDaServer.Connect() at TestHostOPCServerConnection.Program.Main(String[] args) inBelow is the small code created to test connection with OPC DA server
}
Note: There is no problem if i give localhost where in if i give IP address of some machine where OPC DA server is running,problem getting connection.