Closed luy710 closed 2 years ago
Hello GodSharpOpcDaSample! connect to server ...
未经处理的异常: System.AggregateException: 发生一个或多个错误。 ---> System.Exception: The tag with item name 'Channel1.Device1.Bool' add failed. ---> System.Runtime.InteropServices.COMException: 异常来自 HRESULT:0xC0040007 在 OPCAutomation.OPCItems.AddItem(String ItemID, Int32 ClientHandle) 在 GodSharp.Opc.Da.OpcAutomationGroupSubscription.Add(Tag[] tags) --- 内部异常堆栈跟踪的结尾 --- --- 内部异常堆栈跟踪的结尾 --- 在 GodSharp.Opc.Da.OpcAutomationGroupSubscription.Add(Tag[] tags) 在 GodSharp.Opc.Da.OpcDaClient.Connect() 在 GodSharpOpcDaSample.Program.Main(String[] args)
opc da 要用 x86,要支持 x64 使用 OpcNetApi 组件。
x86
x64
OpcNetApi
Hello GodSharpOpcDaSample! connect to server ...
未经处理的异常: System.AggregateException: 发生一个或多个错误。 ---> System.Exception: The tag with item name 'Channel1.Device1.Bool' add failed. ---> System.Runtime.InteropServices.COMException: 异常来自 HRESULT:0xC0040007 在 OPCAutomation.OPCItems.AddItem(String ItemID, Int32 ClientHandle) 在 GodSharp.Opc.Da.OpcAutomationGroupSubscription.Add(Tag[] tags) --- 内部异常堆栈跟踪的结尾 --- --- 内部异常堆栈跟踪的结尾 --- 在 GodSharp.Opc.Da.OpcAutomationGroupSubscription.Add(Tag[] tags) 在 GodSharp.Opc.Da.OpcDaClient.Connect() 在 GodSharpOpcDaSample.Program.Main(String[] args)