net 开发OPC Client,使用自动化接口,OPCDAAuto.dll 2.02.5.20,在创建组的时候
OpcGroups = OpcServer.OPCGroups; << 这行运行时抛异常:
System.InvalidCastException: 无法将类型为“OPCAutomation.OPCServerClass”的对象强制转换为类型“OPCAutomation.IOPCGroups”。
在 OPCAutomation.OPCServerClass.get_OPCGroups();
OPCDAAuto.dll 已注册,版本也一致。
求解决方案!!!