Open wqqwqq666 opened 1 year ago
when i use opcsample to connect my keepserverEx6.1 and I get the following error:
System.InvalidCastException:“无法将类型为“System.__ComObject”的 COM 对象强制转换为接口类型“OpcRcw.Comn.IOPCServerList2”。此操作失败的原因是对 IID 为“{9DD0B56C-AD9E-43EE-8305-487F3188BF7A}”的接口的 COM 组件调用 QueryInterface 因以下错误而失败: 拒绝访问。 (异常来自 HRESULT:0x80070005 (E_ACCESSDENIED))。”
here is my code:
my tag name:
my opcserver:
如果是本地就不要用IP
when i use opcsample to connect my keepserverEx6.1 and I get the following error:
System.InvalidCastException:“无法将类型为“System.__ComObject”的 COM 对象强制转换为接口类型“OpcRcw.Comn.IOPCServerList2”。此操作失败的原因是对 IID 为“{9DD0B56C-AD9E-43EE-8305-487F3188BF7A}”的接口的 COM 组件调用 QueryInterface 因以下错误而失败: 拒绝访问。 (异常来自 HRESULT:0x80070005 (E_ACCESSDENIED))。”
here is my code:
my tag name:
my opcserver: