Skip to content

CoCreateInstanceEx: Class not registered #63

Description

@Shrimpis

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions