-
Notifications
You must be signed in to change notification settings - Fork 104
Open
Description
Hello,
I am getting the following error when trying to connect the my opc server with a DA client:
System.Runtime.InteropServices.ExternalException (0x80040154): CoCreateInstanceEx: Class not registered at TitaniumAS.Opc.Client.Interop.System.Com.CreateInstance(Guid clsid, String host, NetworkCredential credential) at TitaniumAS.Opc.Client.Interop.System.Com.CreateInstanceWithBlanket(Guid clsid, String host, NetworkCredential credential, ComProxyBlanket comProx)...
This is how my class looks like which handles the connection and browsing:
`public class OPCDAClient {
private OpcDaServer Server = null;
private OPCClientSettings Settings;
private List Listeners = new List();
public OPCDAClient() { }
public OPCDAClient(OPCClientSettings settings) {
Settings = settings;
Server = new OpcDaServer(settings.Endpoint);
Server.Connect();
}
public void Browse() {
IOpcDaBrowser browser = new OpcDaBrowserAuto(Server);
OpcDaBrowseElement[] elements = browser.GetElements(null);
foreach(OpcDaBrowseElement element in elements) {
Console.WriteLine("Name: {0}, Has child: {1}", element.Name);
}
}
}`
Any help regarding this would be awesome!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels