Opc A&E path|Classic OPC: DA, A&E, HDA, XML-DA, etc.|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Opc A&E path
Avatar
Stitch35
Member
Members
Forum Posts: 9
Member Since:
06/04/2018
sp_UserOfflineSmall Offline
1
09/18/2018 - 01:29
sp_Permalink sp_Print

Type typeServer = Type.GetTypeFromProgID(“OPCAEServer”, “localhost”);
string serverUrl = typeServer.GUID.ToString();

Opc.Ae.Server server = new Opc.Ae.Server(fact, null);

Opc.URL url = new Opc.URL(serverUrl);

server.Connect(url, new Opc.ConnectData(new System.Net.NetworkCredential()));

 

Exception

ExternalException: CoCreateInstanceEx: The server threw an exception.

Opc.ConnectFailedException: ‘E_NETWORK_ERROR
Could not connect to server.’

1. path to connect Opc.Ae.Server

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online: Randy Armstrong
Guest(s) 39
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1445
Posts: 4888