I'm using Kepware KEPServerEX 5.15 as my OPC server and OPC DA Automation Wrapper 2.02 in .NET to communicate.
When both my application and KEPServerEX are installed on the same machine I have no issues, everything works as expected but when I move the application to another machine I receive a HRESULT E_FAIL exception on any operations.
I have also installed KEPServerEX on the second machine and the application works when pointed locally. I have also tried running the application from the first machine pointed at the seconds server and still get the HRESULT E_FAIL exeption.
I have also disabled the firewalls on both machines to no effect and enabled Network DTC access and set No Authentication Required in the Local DTC Security Properties.
In summary, when I try and use a remote OPC server the application throws HRESULT E_FAIL.
In the simplest example I am doing the following:
Dim opcServer As New OPCAutomation.OPCServer
Dim opcServerEnum As IEnumerable = CType(opcServer.GetOPCServers(hostAddress), IEnumerable)
EDIT: Just found this in the System Event Log:
DCOM got error "2147944122" from the computer 10.24.7.28 when attempting to activate the server: {13486D51-4821-11D2-A494-3CB306C10000}