godsharp / opcsample

Opc Sample
https://godsharp.github.io/opcsample/
35 stars 14 forks source link

cannot connect KeepServerEx6.1 #9

Open wqqwqq666 opened 1 year ago

wqqwqq666 commented 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: 图片

seayxu commented 10 months ago

如果是本地就不要用IP